Add --locked flag to Cargo install

Using the `--locked` flag prevents installation failures when dependencies have broken updates.

All references are replaced.
This commit is contained in:
Allan 2024-11-18 09:22:56 -05:00
parent 13ce9e4f64
commit 00bc3b054d
11 changed files with 12 additions and 12 deletions

View File

@ -3,7 +3,7 @@
- For detailed info, please look at [cargo-fuzz](https://github.com/rust-fuzz/cargo-fuzz) - For detailed info, please look at [cargo-fuzz](https://github.com/rust-fuzz/cargo-fuzz)
# Quick start guide # Quick start guide
- Install cargo-fuzz by `cargo install cargo-fuzz` - Install cargo-fuzz by `cargo install cargo-fuzz --locked`
- Run `gather_seeds.nu` for preparing the initial seeds corpus - Run `gather_seeds.nu` for preparing the initial seeds corpus
- Make output directory `mkdir out` - Make output directory `mkdir out`
- Run the fuzzer with `cargo fuzz run parse out seeds` - Run the fuzzer with `cargo fuzz run parse out seeds`

View File

@ -3,6 +3,6 @@
- For detailed info, please look at [cargo-fuzz](https://github.com/rust-fuzz/cargo-fuzz) - For detailed info, please look at [cargo-fuzz](https://github.com/rust-fuzz/cargo-fuzz)
# Quick start guide # Quick start guide
- Install cargo-fuzz by `cargo install cargo-fuzz` - Install cargo-fuzz by `cargo install cargo-fuzz --locked`
- Make output directory `mkdir out` - Make output directory `mkdir out`
- Run the fuzzer with `cargo fuzz run parse out` - Run the fuzzer with `cargo fuzz run parse out`

View File

@ -5,7 +5,7 @@ Note: this requires Nushell 0.60 or later
To install: To install:
``` ```
> cargo install --path . > cargo install --path . --locked
``` ```
To add the plugin (from inside Nushell): To add the plugin (from inside Nushell):

View File

@ -5,7 +5,7 @@ Note: this requires Nushell 0.60 or later
To install: To install:
``` ```
cargo install --path . cargo install --path . --locked
``` ```
To add the plugin (from inside Nushell): To add the plugin (from inside Nushell):

View File

@ -5,7 +5,7 @@ Note: this requires Nushell 0.60 or later
To install: To install:
``` ```
> cargo install --path . > cargo install --path . --locked
``` ```
To add the plugin (from inside Nushell): To add the plugin (from inside Nushell):

View File

@ -56,7 +56,7 @@ Help from the community to make sure they get tested and improved so they can be
The Nushell team only provides a select few distribution sources and so far encourages community members to maintain the individual packages for particular package managers: The Nushell team only provides a select few distribution sources and so far encourages community members to maintain the individual packages for particular package managers:
We provide: We provide:
- source code distribution via `crates.io` -> `cargo install nu` - source code distribution via `crates.io` -> `cargo install nu --locked`
- GitHub builds with each release: (following the build matrix of the nightly builds) - GitHub builds with each release: (following the build matrix of the nightly builds)
- the setup for `winget` packaging - the setup for `winget` packaging

View File

@ -35,7 +35,7 @@ let start = (date now)
# #
# Output: `lcov.info` file # Output: `lcov.info` file
# #
# Relies on `cargo-llvm-cov`. Install via `cargo install cargo-llvm-cov` # Relies on `cargo-llvm-cov`. Install via `cargo install cargo-llvm-cov --locked`
# https://github.com/taiki-e/cargo-llvm-cov # https://github.com/taiki-e/cargo-llvm-cov
# You probably have to run `cargo llvm-cov clean` once manually, # You probably have to run `cargo llvm-cov clean` once manually,

View File

@ -7,7 +7,7 @@ REPO_ROOT=$(dirname $DIR)
# #
# Output: `lcov.info` file # Output: `lcov.info` file
# #
# Relies on `cargo-llvm-cov`. Install via `cargo install cargo-llvm-cov` # Relies on `cargo-llvm-cov`. Install via `cargo install cargo-llvm-cov --locked`
# https://github.com/taiki-e/cargo-llvm-cov # https://github.com/taiki-e/cargo-llvm-cov
# You probably have to run `cargo llvm-cov clean` once manually, # You probably have to run `cargo llvm-cov clean` once manually,

View File

@ -26,7 +26,7 @@ foreach ( $plugin in $NU_PLUGINS) {
Write-Output "Install plugin $plugin from local..." Write-Output "Install plugin $plugin from local..."
Write-Output "----------------------------------------------" Write-Output "----------------------------------------------"
Set-Location crates/$plugin Set-Location crates/$plugin
cargo install --force --path . cargo install --force --path . --locked
Set-Location ../../ Set-Location ../../
} }

View File

@ -30,5 +30,5 @@ do
echo "----------------------------------------------" echo "----------------------------------------------"
echo "Install plugin $plugin from local..." echo "Install plugin $plugin from local..."
echo "----------------------------------------------" echo "----------------------------------------------"
cargo install --force --path "$REPO_ROOT/crates/$plugin" cargo install --force --path "$REPO_ROOT/crates/$plugin" --locked
done done

View File

@ -373,7 +373,7 @@ def install-plugin [] {
print $'(char nl)Installing ($plugin)' print $'(char nl)Installing ($plugin)'
print '----------------------------' print '----------------------------'
^cargo install --path $"crates/($plugin)" ^cargo install --path $"crates/($plugin) --locked"
} }
# install Nushell and features you want # install Nushell and features you want
@ -461,7 +461,7 @@ def compute-coverage [] {
# #
# Output: `lcov.info` file # Output: `lcov.info` file
# #
# Relies on `cargo-llvm-cov`. Install via `cargo install cargo-llvm-cov` # Relies on `cargo-llvm-cov`. Install via `cargo install cargo-llvm-cov --locked`
# https://github.com/taiki-e/cargo-llvm-cov # https://github.com/taiki-e/cargo-llvm-cov
# #
# You probably have to run `cargo llvm-cov clean` once manually, # You probably have to run `cargo llvm-cov clean` once manually,