Skip to content

Commit

Permalink
Add --locked flag to all install commands
Browse files Browse the repository at this point in the history
Resolves: #331
  • Loading branch information
Jake-Shadle committed Feb 17, 2021
1 parent 7fdec14 commit 076520b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ _Please Note: This is a tool that we use (and like!) and it makes sense to us to
## [Quickstart](https://embarkstudios.github.io/cargo-deny/)

```bash
cargo install cargo-deny && cargo deny init && cargo deny check
cargo install --locked cargo-deny && cargo deny init && cargo deny check
```

## Usage
Expand All @@ -31,7 +31,7 @@ build `cargo-deny` with the `standalone` feature.
This can be useful in Docker Images.

```bash
cargo install cargo-deny
cargo install --locked cargo-deny

# Or, if you're an Arch user
yay -S cargo-deny
Expand Down
2 changes: 1 addition & 1 deletion docs/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Installs cargo-deny, initializes your project with a default configuration,
then runs all of the checks against your project.

```bash
cargo install cargo-deny && cargo deny init && cargo deny check
cargo install --locked cargo-deny && cargo deny init && cargo deny check
```

## Command Line Interface
Expand Down
4 changes: 2 additions & 2 deletions docs/src/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Installing cargo-deny is relatively easy if you already have Rust and Cargo
installed. You just have to type this snippet in your terminal:

```bash
cargo install cargo-deny
cargo install --locked cargo-deny
```

This will fetch the source code for the latest release from
Expand All @@ -55,7 +55,7 @@ the latest bug-fixes and features, that will be released in the next version on
version yourself.

```bash
cargo install --git https://github.com/EmbarkStudios/cargo-deny cargo-deny
cargo install --locked --git https://github.com/EmbarkStudios/cargo-deny cargo-deny
```

Run `cargo deny help` in your terminal to verify if it works. Congratulations,
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@
//! ## [Quickstart](https://embarkstudios.github.io/cargo-deny/)
//!
//! ```bash
//! cargo install cargo-deny && cargo deny init && cargo deny check
//! cargo install --locked cargo-deny && cargo deny init && cargo deny check
//! ```
//!
//! ## Usage
//!
//! ### [Install](https://embarkstudios.github.io/cargo-deny/cli/index.html) cargo-deny
//!
//! ```bash
//! cargo install cargo-deny
//! cargo install --locked cargo-deny
//! ```
//!
//! ### [Initialize](https://embarkstudios.github.io/cargo-deny/cli/init.html) your project
Expand Down

0 comments on commit 076520b

Please sign in to comment.