-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Cargo set environment variables provided by build scripts randomly when running tests #9100
Comments
As for the environment variables being set during @alexcrichton To clarify, the issue is that |
Hm, I take back what I said. It looks like it is randomly picking environment variables. The issue is that these lines do not differentiate based on the correct parameters. I'll try to take a look at that soonish. |
The thing is (as you noted in your last comment) -- cargo is inconsistent wrt. which env vars it sets during
Yeah, looks like all build script env vars are put into that |
Hm that's probably a bug that it's set at runtime for the test in addition to compile-time for the test executable. But yeah I agree with @ehuss's assessment that we probably can't back this out now and the bug is around those lines since the targete-process-execution is much less precise than the build itself. |
Discovered in rust-lang/miri#1661 (comment) by @RalfJung.
Steps
cargo clean && cargo test --workspace --target i686-unknown-linux-musl -vv
(with--jobs 1
optionally).x86_64-unknown-linux-gnu
):Version info
cc @ehuss
The text was updated successfully, but these errors were encountered: