-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Building rustc-1.84.0 tarball fails with git error "fatal: --local can only be used inside a git repository" #135358
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
Comments
what's your |
I see the one from @truboxl backlinked from termux: https://github.com/termux/termux-packages/blob/0366d87f0e811efadd6de798cbc8220c216d2faa/packages/rust/config.toml#L4 You need to set |
Bug: rust-lang/rust#135358 Closes: https://bugs.gentoo.org/947897 Signed-off-by: Sam James <sam@gentoo.org>
We shouldn't allow using "if-unchanged" on non-git sources. |
Maybe it would also be good to force people to set |
I think that wouldn't be enough as can simply override the defaults. |
defaulting to (but not forcing) profile = dist in non-git sources seems like a good change. i agree with onur that we should additionally add a helpful error when combining download-* with non-git sources. |
Adding profile = "dist" results in a successful build, thank you very much. I am fine with manually declaring profile = "dist" in my config.toml if it is clearly stated and described in the tarball's config.toml.example |
Sorry, closed by mistake; please re-open if needed. |
Mentoring instructions:
|
@rustbot claim |
Hello @onur-ozkan! Am I required to write unit tests also? |
Having coverage for this change would be really great. |
Rollup merge of rust-lang#135433 - tanvincible:patch-1, r=onur-ozkan Add Profile Override for Non-Git Sources ## PR description - Fixes rust-lang#135358 This PR introduces the following updates to 1. `bootstrap.py`: - If the `profile` is `None` and the source is non-git, the `profile` is automatically overridden to `"dist"`. - Ensures that options like `download-ci-llvm` and `download-rustc` are not used with non-git sources. An exception is raised if these options are present in the configuration when the source is non-git. 2. `bootstrap_test.py` - Added unit tests to verify both the profile override mechanism and the assertion for restricted options. These tests ensure the correct behavior for non-git sources and the handling of `if-unchanged` options. r? `@onur-ozkan` `@rustbot` T-bootstrap
Is this really enough? With a rustc-1.84.1 release tarball I still don't get the behavior of |
Yeah, profile overriding (to "dist") logic should be duplicated on Rust side too. Note: This doesn't have anything to do with the original error reported in the issue. It was fixed with #135722. |
I am trying to build the official tarball on Linux and it fails with the following error:
Using the same config.toml file on the tarball for rustc 1.83 works with no problems, so this seems to be limited to the 1.84 tarball. Please kindly assist, thank you.
The text was updated successfully, but these errors were encountered: