Skip to content

rustbuild: Set ignore-git based on channel #43873

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

Closed
wants to merge 1 commit into from

Conversation

alexcrichton
Copy link
Member

This commit automatically sets ignore-git to true in configuration if the
configured channel is set to "dev" and otherwise no value for ignore-git has
been specified. This'll help rebuilds locally whenever a new commit is made by
ensuring that git information never makes its way to compiler crates in the
first place.

Closes #43771

This commit automatically sets `ignore-git` to `true` in configuration if the
configured channel is set to "dev" and otherwise no value for `ignore-git` has
been specified. This'll help rebuilds locally whenever a new commit is made by
ensuring that git information never makes its way to compiler crates in the
first place.

Closes rust-lang#43771
@rust-highfive
Copy link
Contributor

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member Author

r? @Mark-Simulacrum

@@ -54,7 +54,7 @@ pub struct Config {
pub extended: bool,
pub sanitizers: bool,
pub profiler: bool,
pub ignore_git: bool,
pub ignore_git: Option<bool>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should make this an optional -- I've been trying to make Config as much a "source of truth" as possible without needing interpretation outside this file. We can save rust.ignore_git to a variable when loading and process the logic here.

@alexcrichton
Copy link
Member Author

Closing due to #43771 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants