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
Allow configuring the parent GitHub repository #117122
Conversation
The git integration in build_helper hardcoded `rust-lang/rust` as the parent GitHub repository, and `master` as the branch name. This works great for `rust-lang/rust`, but causes problems in downstream forks like Ferrocene whenever those functions are invoked (like `./x fmt`). In `src/stage0.json` there was already a configuration key for the name of the nightly branch, but it wasn't used by build_helper. This commit adds the `github_repository` key to the file, and requires both values to be passed to build_helper whenever a git function is called. This will allow downstream forks to tweak the values.
(rustbot has picked a reviewer for you, use r? to override) |
This PR modifies This PR changes how LLVM is built. Consider updating src/bootstrap/download-ci-llvm-stamp. |
This is a good idea, thanks! |
This comment has been minimized.
This comment has been minimized.
This PR changes how LLVM is built. Consider updating src/bootstrap/download-ci-llvm-stamp. This PR modifies |
Right now the configuration is not in
|
This comment has been minimized.
This comment has been minimized.
My bad, I was thinking it was an option in config.toml. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I would prefer if github_repository
was renamed to git_repository
.
r=me with the change
@bors r=albertlarsan68 |
This comment has been minimized.
This comment has been minimized.
…lbertlarsan68 Allow configuring the parent GitHub repository The git integration in build_helper hardcoded `rust-lang/rust` as the parent GitHub repository, and `master` as the branch name. This works great for `rust-lang/rust`, but causes problems in downstream forks like Ferrocene whenever those functions are invoked (like `./x fmt`). In `src/stage0.json` there was already a configuration key for the name of the nightly branch, but it wasn't used by build_helper. This PR adds the `github_repository` key to the file, and requires both values to be passed to build_helper whenever a git function is called. This will allow downstream forks to tweak the values.
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
…=albertlarsan68 Allow configuring the parent GitHub repository The git integration in build_helper hardcoded `rust-lang/rust` as the parent GitHub repository, and `master` as the branch name. This works great for `rust-lang/rust`, but causes problems in downstream forks like Ferrocene whenever those functions are invoked (like `./x fmt`). In `src/stage0.json` there was already a configuration key for the name of the nightly branch, but it wasn't used by build_helper. This PR adds the `github_repository` key to the file, and requires both values to be passed to build_helper whenever a git function is called. This will allow downstream forks to tweak the values.
@bors r=albertlarsan68 |
☀️ Test successful - checks-actions |
Finished benchmarking commit (4c8862b): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 662.476s -> 663.173s (0.11%) |
The git integration in build_helper hardcoded
rust-lang/rust
as the parent GitHub repository, andmaster
as the branch name. This works great forrust-lang/rust
, but causes problems in downstream forks like Ferrocene whenever those functions are invoked (like./x fmt
).In
src/stage0.json
there was already a configuration key for the name of the nightly branch, but it wasn't used by build_helper. This PR adds thegithub_repository
key to the file, and requires both values to be passed to build_helper whenever a git function is called. This will allow downstream forks to tweak the values.