Support set auto-self-update mode#2763
Conversation
This comment has been minimized.
This comment has been minimized.
ae19fc2 to
f46b487
Compare
d970923 to
945b625
Compare
13a4df1 to
9413cb6
Compare
kinnison
left a comment
There was a problem hiding this comment.
There are a number of whitespace changes in this PR. I don't mind them too much, but in future it's best if this kind of reformatting is only done in independent commits/PRs.
I have made a number of wording change suggestions. You do not have to accept them all, but in general I think they're likely to improve matters.
e075b80 to
d235ade
Compare
Got it. |
d235ade to
ec192fe
Compare
|
@kinnison Could you please take another look? All comments addressed. Thanks! |
ec192fe to
fddbc2e
Compare
|
Conflicts have been resolved. |
kinnison
left a comment
There was a problem hiding this comment.
A couple of doc tweaks and a question which might be "no need" or might lead to a slight code change - otherwise I think this is nearly ready to merge.
338f0bd to
390acde
Compare
390acde to
11c1d3b
Compare
|
Commits squashed. |
11c1d3b to
3670450
Compare
kinnison
left a comment
There was a problem hiding this comment.
Assuming CI goes green, I think this is okay. @rbtcollins ?
6f481f2 to
a558f65
Compare
d5b8ed7 to
2c7134f
Compare
80f9e55 to
31fd3c6
Compare
6b46b3d to
8797fa8
Compare
|
@rbtcollins All comments addressed. Thanks for your review! |
8797fa8 to
9539557
Compare
|
@rbtcollins @kinnison Can we merge it? Are there any other issues? |
kinnison
left a comment
There was a problem hiding this comment.
One tiny suggestion, otherwise I'm good with this. If @rbtcollins is happy then we can merge IMO.
b74cfea to
d85d0be
Compare
|
It seems the docker image is broken. |
rbtcollins
left a comment
There was a problem hiding this comment.
Minor nits - I'll fix these I think
doc/src/basics.md
Outdated
| Running `rustup update` also checks for updates to `rustup` itself and automatically | ||
| installs the latest version. To manually update `rustup` only, | ||
| without updating installed toolchains, type `rustup self update`: | ||
| If your `rustup` was build with the `no-self-update` feature, it will not be able to update itself. |
There was a problem hiding this comment.
should be past tense
'was built with'
src/cli/rustup_mode.rs
Outdated
| let arg0 = arg0 | ||
| .as_ref() | ||
| .and_then(|a| a.to_str()) | ||
| .ok_or(CLIError::NoExeFilePath)?; |
There was a problem hiding this comment.
We already have NoExeName : I don't think is different enough to bother with a new error (and as the error is never caught and never repeated, we can just use anyhow!(...)
test: clean up "--no-self-update" args test: add check-only and enable tests docs: update docs and add comment
d85d0be to
3670473
Compare
|
@rbtcollins @kinnison Thanks again for your review! |
close #2576