-
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
Include package props with corresponding env vars into target metadata #3857
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Looks great, thanks! Could you leave a comment over in where the env vars are set to be sure to update this hash piece as well? |
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.
2fe29b7
to
d70ca21
Compare
Done. While looking for a place where hash is calculated I also have stumbled upon a misleading comment (no function |
Heh yeah comments don't always live up to the test of time... In any case looks great, thanks again! @bors: r+ |
📌 Commit d70ca21 has been approved by |
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.
☀️ Test successful - status-appveyor, status-travis |
Some fingerprint cleanup. Just a minor cleanup. Move `CARGO_PKG_*` values from Metadata to Fingerprint (added in #3857). Closes #6208. This prevents stale artifacts from being left behind when these values change. Also tracks changes to the "repository" value (added in #6096). Remove `edition` as a separate field. It is already tracked in `target`. This was required previously to #5816 which added per-target editions. Also adds a helper to the testsuite to make globbing easier.
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.