diff options
| author | mo8it <mo8it@proton.me> | 2024-04-24 13:28:25 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-24 13:28:25 +0200 |
| commit | 71053101c32d0fd374f8e122880b3d682519bac6 (patch) | |
| tree | 38d3bdc1590d1950ccb7d1d591bc3f00d8046d3f | |
| parent | ea504e6bf11a23bb010b7b98a58a97ec2dcd0489 (diff) | |
Add --locked
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | install.ps1 | 2 | ||||
| -rwxr-xr-x | install.sh | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -74,13 +74,13 @@ If you get a permission denied message, you might have to exclude the directory ## Manually -Basically: Clone the repository at the latest tag, run `cargo install --path .`. +Basically: Clone the repository at the latest tag, run `cargo install --locked --path .`. ```bash # find out the latest version at https://github.com/rust-lang/rustlings/releases/latest (on edit 5.6.1) git clone -b 5.6.1 --depth 1 https://github.com/rust-lang/rustlings cd rustlings -cargo install --force --path . +cargo install --locked --force --path . ``` If there are installation errors, ensure that your toolchain is up to date. For the latest, run: diff --git a/install.ps1 b/install.ps1 index 844b013..8ab5b88 100644 --- a/install.ps1 +++ b/install.ps1 @@ -78,7 +78,7 @@ Set-Location $path git checkout -q tags/$version Write-Host "Installing the 'rustlings' executable..." -cargo install --force --path . +cargo install --locked --force --path . if (!(Get-Command rustlings -ErrorAction SilentlyContinue)) { Write-Host "WARNING: Please check that you have '~/.cargo/bin' in your PATH environment variable!" } @@ -165,7 +165,7 @@ echo "Checking out version $Version..." git checkout -q ${Version} echo "Installing the 'rustlings' executable..." -cargo install --force --path . +cargo install --locked --force --path . if ! [ -x "$(command -v rustlings)" ] then |
