-
Notifications
You must be signed in to change notification settings - Fork 2.6k
DEP_* env variable not set in nightly test run #9063
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
regression-from-stable-to-beta
Regression in beta that previously worked in stable.
Comments
@alexcrichton I think this was caused by #8969. When running |
Thanks for the report! I think this should be fixed by #9065. Sorry about the breakage! |
bors
added a commit
that referenced
this issue
Jan 12, 2021
Fix `links` vars showing up for testing packages If a package is tested and the library for the package wasn't built (e.g. only tested or it wasn't present) then the `links` env vars from dependencies weren't showing up to the build script by accident. This was an accidental regression from #8969. The intention of #8969 was to exclude connections to build scripts connected via dev-dependencies, but it only applied a heuristic because the unit graph doesn't retain information about dev-dependencies. The fix here is to instead actually retain information about dev-dependencies which is only used for constructing the unit graph and connecting build script executions to one another. Closes #9063
FYI: This caused only one breakage in the latest crater run. |
alexcrichton
added a commit
to alexcrichton/cargo
that referenced
this issue
Jan 12, 2021
If a package is tested and the library for the package wasn't built (e.g. only tested or it wasn't present) then the `links` env vars from dependencies weren't showing up to the build script by accident. This was an accidental regression from rust-lang#8969. The intention of rust-lang#8969 was to exclude connections to build scripts connected via dev-dependencies, but it only applied a heuristic because the unit graph doesn't retain information about dev-dependencies. The fix here is to instead actually retain information about dev-dependencies which is only used for constructing the unit graph and connecting build script executions to one another. Closes rust-lang#9063
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Uh oh!
There was an error while loading. Please reload this page.
This happens with the nightly version, but not with the stable.
Reproduce
Cargo.toml
test.c
build.rs
Now just run
cargo +nighly test
. With stable this works perfectly, with nightly theDEP_SODIUM_INCLUDE
env variable is not set.The text was updated successfully, but these errors were encountered: