mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-02 11:22:30 +01:00
Add '--locked' flag to all 'cargo install' commands
This commit is contained in:
@@ -352,7 +352,7 @@ If you want to build `bat` from source, you need Rust 1.40 or
|
||||
higher. You can then use `cargo` to build everything:
|
||||
|
||||
```bash
|
||||
cargo install bat
|
||||
cargo install --locked bat
|
||||
```
|
||||
|
||||
On some platforms, you might need to install `llvm` and/or `libclang-dev`.
|
||||
@@ -606,11 +606,11 @@ cargo build --bins
|
||||
cargo test
|
||||
|
||||
# Install (release version)
|
||||
cargo install
|
||||
cargo install --locked
|
||||
|
||||
# Build a bat binary with modified syntaxes and themes
|
||||
bash assets/create.sh
|
||||
cargo install -f
|
||||
cargo install --locked --force
|
||||
```
|
||||
|
||||
## Maintainers
|
||||
|
Reference in New Issue
Block a user