-
Notifications
You must be signed in to change notification settings - Fork 2k
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
doc: Add missing --locked
to C2Rust installation instructions
#17694
Conversation
PR RIOT-OS#17504 missed one `--locked` flag when resolving RIOT-OS#17492
@@ -122,7 +122,7 @@ and needs some patches applied: | |||
```shell | |||
$ rustup install nightly-2019-12-05 | |||
$ rustup component add --toolchain nightly-2019-12-05 rustfmt rustc-dev | |||
$ cargo +nightly-2019-12-05 install c2rust | |||
$ cargo +nightly-2019-12-05 install --locked c2rust |
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.
hm, isn't this either-or? either install from crates.io (using this line), or from the checked-out path? and, older cargo versions don't support/honor "--locked" when installing from crates.io (vs. local path), IIRC.
@chrysn knows more.
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.
That's a weird error in the documentation I wrote -- that line shouldn't be there in the first place, the relevant install is 3 lines down where I fixed the --locked in https://github.com/RIOT-OS/RIOT/pull/17504/files
(The c2rust uploaded to crates.io is also not the one working, no clue what went wrong there precisely; that changed line should just go away)
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.
It's an incomplete fix because there shouldn't be two installs in the first place, see #17700 for a full fix.
@@ -122,7 +122,7 @@ and needs some patches applied: | |||
```shell | |||
$ rustup install nightly-2019-12-05 | |||
$ rustup component add --toolchain nightly-2019-12-05 rustfmt rustc-dev | |||
$ cargo +nightly-2019-12-05 install c2rust | |||
$ cargo +nightly-2019-12-05 install --locked c2rust |
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.
That's a weird error in the documentation I wrote -- that line shouldn't be there in the first place, the relevant install is 3 lines down where I fixed the --locked in https://github.com/RIOT-OS/RIOT/pull/17504/files
(The c2rust uploaded to crates.io is also not the one working, no clue what went wrong there precisely; that changed line should just go away)
Superseded by #17700 |
Contribution description
This PR adds a second
--locked
flag to the install instructions of C2Rust. Without it, the installation fails as described in #17492.Testing procedure
Documentation should be updated.
Issues/PRs references
Fixes #17492 (again).