New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diesel complains that it can't find Cargo.toml despite successfully running migrations #1760

Closed
SamWhited opened this Issue Jun 14, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@SamWhited

SamWhited commented Jun 14, 2018

Setup

Versions

  • Rust: 1.28.0 nightly
  • Diesel: 1.3.1
  • Database: postgres
  • Operating System arch

Feature Flags

  • diesel: postgres

Problem Description

When running any migration command (eg. diesel migration redo) migrations complete successfully, but diesel complains:

Unable to find Cargo.toml in this directory or any parent directories.

I don't have a Cargo.toml because I am not using Cargo.

What is the expected output?

No unnecessary warnings about a build system that I am not using.

What is the actual output?

Unable to find Cargo.toml in this directory or any parent directories.

Checklist

  • I have already looked over the issue tracker for similar issues.
  • This issue can be reproduced on Rust's stable channel. (Your issue will be
    closed if this is not the case)

eg.

$ diesel migration redo
Rolling back migration 2018-06-13-215447_init
Running migration 2018-06-13-215447_init
Unable to find Cargo.toml in this directory or any parent directories.
@sgrif

This comment has been minimized.

Member

sgrif commented Jun 14, 2018

Looks like this error occurs when Diesel CLI looks for a config file (the default location is in the same place as Cargo.toml)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment