Put --locked in the troubleshooting section

This commit is contained in:
mo8it 2024-04-26 01:55:44 +02:00
parent be4dfe8be0
commit b7289e59aa

View file

@ -32,11 +32,18 @@ The following command will download and compile Rustlings:
<!-- TODO: Remove @6.0.0-beta.x --> <!-- TODO: Remove @6.0.0-beta.x -->
```bash ```bash
cargo install rustlings@6.0.0-beta.3 --locked cargo install rustlings@6.0.0-beta.3
``` ```
If the installation failes, make sure you have the latest Rust version by running `rustup update`. #### Troubleshooting
Otherwise, please [report an issue](https://github.com/rust-lang/rustlings/issues/new).
If the installation fails…
<!-- TODO: Remove @6.0.0-beta.x -->
- Make sure you have the latest Rust version by running `rustup update`.
- Try adding the `--locked` flag: `cargo install rustlings --locked`
- Otherwise, please [report an issue](https://github.com/rust-lang/rustlings/issues/new).
### Initialization ### Initialization