Skip to content

Commit 7105310

Browse files
committed
Add --locked
1 parent ea504e6 commit 7105310

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ If you get a permission denied message, you might have to exclude the directory
7474

7575
## Manually
7676

77-
Basically: Clone the repository at the latest tag, run `cargo install --path .`.
77+
Basically: Clone the repository at the latest tag, run `cargo install --locked --path .`.
7878

7979
```bash
8080
# find out the latest version at https://github.com/rust-lang/rustlings/releases/latest (on edit 5.6.1)
8181
git clone -b 5.6.1 --depth 1 https://github.com/rust-lang/rustlings
8282
cd rustlings
83-
cargo install --force --path .
83+
cargo install --locked --force --path .
8484
```
8585

8686
If there are installation errors, ensure that your toolchain is up to date. For the latest, run:

install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Set-Location $path
7878
git checkout -q tags/$version
7979

8080
Write-Host "Installing the 'rustlings' executable..."
81-
cargo install --force --path .
81+
cargo install --locked --force --path .
8282
if (!(Get-Command rustlings -ErrorAction SilentlyContinue)) {
8383
Write-Host "WARNING: Please check that you have '~/.cargo/bin' in your PATH environment variable!"
8484
}

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ echo "Checking out version $Version..."
165165
git checkout -q ${Version}
166166

167167
echo "Installing the 'rustlings' executable..."
168-
cargo install --force --path .
168+
cargo install --locked --force --path .
169169

170170
if ! [ -x "$(command -v rustlings)" ]
171171
then

0 commit comments

Comments
 (0)