-
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
cargo install
does not ignore unstable
table in .cargo/config.toml
file
#8512
Comments
Thanks for the report! @bearcage do you think you can take a look at this? |
I looked into this a bit and it seems like the problem is that the I'm not sure about the best way to fix this, but a simple solution might be to store the |
That sounds like a good approach. Would be happy for a PR. Thanks for taking a look! |
Opened a PR at #8656. |
Apologies for reviving an ancient thread — sorry I didn't respond to this @ehuss! This notif landed at a time I'd been auto-subscribed to a whole mess of internal repos at work and ended up declaring github-notification-bankruptcy (marking everything read). |
Problem
In #6026, the behavior of
cargo install
was changed to ignore any.cargo/config.toml
configuration in the current working directory. It seems like this behavior does not apply to the newunstable
table in that config file.Steps
.cargo/config.toml
file with the following content:cargo install bootimage
.-Zbuild-std requires --target
error..cargo/config
file no longer applies.Possible Solution(s)
The
unstable
table should behave the same as the other.cargo/config.toml
configuration keys and be ignored forcargo install
. Only configuration files in the home directory and the--path
directory should be considered.Notes
Output of
cargo version
:cargo 1.46.0-nightly (43cf773 2020-07-13)
release: 1.46.0
commit-hash: 43cf773
commit-date: 2020-07-13
Originally reported by @Asoftyn in rust-osdev/bootimage#64.
The text was updated successfully, but these errors were encountered: