-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Changes to Cargo.toml that result in a different environment should invalidate the build #3696
Labels
C-bug
Category: bug
Comments
Definitely sounds like a bug! |
This should be a relatively easy bug to tackle by just throwing more fields into a hash I believe. |
I'll give it a shot this week if nobody else gets to it. |
Sure thing! Let me know if any help/guidance is needed |
It's been a while, can I try this one? |
@antonlarin feel free! Lemme know if you need any help |
antonlarin
added a commit
to antonlarin/cargo
that referenced
this issue
Mar 23, 2017
Previously, when changing package properties with corresponding environment variables (such as authors, which has CARGO_PKG_AUTHORS), it didn't invalidate the build, even though there could have been a dependency on such variables in the source code. This commit includes such properties (there are 3 of them in total: authors, description and homepage) in the target metadata. Fixes rust-lang#3696.
bors
added a commit
that referenced
this issue
Mar 23, 2017
Include package props with corresponding env vars into target metadata Previously, when changing package properties with corresponding environment variables (such as authors, which has CARGO_PKG_AUTHORS), it didn't invalidate the build, even though there could have been a dependency on such variables in the source code. This commit includes 3 such properties: authors list, description and homepage in the target metadata. I've added a test only for description change, can add more if necessary. Fixes #3696.
Thanks @antonlarin! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
cargo build
name
orversion
that has an associated environment variable, eg descriptioncargo build
Expected outcome: binary is rebuilt
Actual outcome: binary is not rebuilt
Transcript demonstrating the issue:
The text was updated successfully, but these errors were encountered: