make it possible to disable download-rustc if it's incompatible by onur-ozkan · Pull Request #128098 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation6 Commits1 Checks6 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

onur-ozkan

Primarily needed by CI runners to avoid handling download-rustc incompatible options one by one on shell scripts.

This will significantly help to #122709.

@onur-ozkan

Primarily needed by CI runners to avoid handling download-rustc incompatible options one by one on shell scripts.

Signed-off-by: onur-ozkan work@onurozkan.dev

@rustbot

r? @Kobzol

rustbot has assigned @Kobzol.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

T-bootstrap

Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

labels

Jul 23, 2024

@rustbot

This PR modifies src/bootstrap/src/core/config.

If appropriate, please update CONFIG_CHANGE_HISTORY in src/bootstrap/src/utils/change_tracker.rs.

Kobzol

Choose a reason for hiding this comment

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

Looks fine, although random env. vars are hard to discover (maybe we should at least document this in config.example.toml?). What do you think about just using a different mode instead? Something like rust.download-rustc = "if-compatible".

@onur-ozkan

Looks fine, although random env. vars are hard to discover (maybe we should at least document this in config.example.toml?). What do you think about just using a different mode instead? Something like rust.download-rustc = "if-compatible".

I think adding another mode to download-rustc makes it complicated than it should be. We only need this for CI and no one should need/use it for local development. As for documenting it, I can make a follow-up PR on https://github.com/rust-lang/rustc-dev-guide.

@Kobzol

Right, I considered this to also be user-facing, because I myself had a use-case for it 😆 (as we discussed on Zulip). If it's really only for CI, then fine by me.

@bors r+

@bors

📌 Commit d4f3673 has been approved by Kobzol

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Jul 23, 2024

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jul 23, 2024

@bors

…iaskrgr

Rollup of 7 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Jul 23, 2024

@rust-timer

Rollup merge of rust-lang#128098 - onur-ozkan:incompatible-option-behaviour, r=Kobzol

make it possible to disable download-rustc if it's incompatible

Primarily needed by CI runners to avoid handling download-rustc incompatible options one by one on shell scripts.

This will significantly help to rust-lang#122709.

@onur-ozkan onur-ozkan deleted the incompatible-option-behaviour branch

July 24, 2024 17:37

Labels

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

T-bootstrap

Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)