Skip to content
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

Improve handling of --default-host #2086

Merged
merged 2 commits into from
Oct 26, 2019

Conversation

kinnison
Copy link
Contributor

We were previously having somewhat surprising behaviour for --default-host when combined with --default-toolchain none or an installation where there already is a default toolchain. This PR corrects that hopefully, making the use of those arguments less surprising.

Previously we wouldn't honour `--default-host` if we specified
`--default-toolchain none` or if there was an existing installation
we were updating.  This should reduce surprise a little.

Fixes: rust-lang#2082

Signed-off-by: Daniel Silverstone <[email protected]>
In order to reduce surprise, if the user did not explicitly supply
or explicitly set a default host triple during installation then
we do not override whatever the configuration picks by default
from the host/build.

Signed-off-by: Daniel Silverstone <[email protected]>
@kinnison
Copy link
Contributor Author

@faern do you think this will solve your problem, the behaviour is now approximately:

If user specifies --default-host on the CLI, or chooses to customise it in the installer, then that is always set into the config, regardless of --default-toolchain or existing toolchain installations

@faern
Copy link
Contributor

faern commented Oct 26, 2019

Great. Yes I think --default-host should map 1:1 to what is written as the default host in the config. If that would for some reason not be possible/compatible then it should error, not silently set something else.

@kinnison kinnison merged commit 57b0389 into rust-lang:master Oct 26, 2019
@kinnison kinnison deleted the kinnison/fix-default-host branch October 26, 2019 12:28
@bors bors mentioned this pull request Oct 26, 2019
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.

2 participants