Skip to content
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

Env var configuration errors may not always report the env var #7781

Closed
alexcrichton opened this issue Jan 8, 2020 · 0 comments · Fixed by #7891
Closed

Env var configuration errors may not always report the env var #7781

alexcrichton opened this issue Jan 8, 2020 · 0 comments · Fixed by #7891
Labels
A-configuration Area: cargo config files and env vars

Comments

@alexcrichton
Copy link
Member

Playing around a bit today, I manage to get a good error (yay!)

$ CARGO_BUILD_PIPELINING=not-a-bool cargo +nightly build
error: error in environment variable `CARGO_BUILD_PIPELINING`: provided string was not `true` or `false` 

but then playing some more I got a different error:

$ CARGO_BUILD_RUSTFLAGS=true cargo +nightly build
error: failed to deserialize, expected a string or array of strings: data did not match any variant of untagged enum Target

Note that the error in the latter one may be attributable to #7780, but despite that maybe being a bug it's probably also a bug that the env var isn't mentioned!

@alexcrichton alexcrichton added the A-configuration Area: cargo config files and env vars label Jan 8, 2020
@bors bors closed this as completed in 914e31d Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-configuration Area: cargo config files and env vars
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant