Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/book/src/reference/build-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ re-executed. The paths in the file are absolute by default. See the
A third party tool, [sccache], can be used to share built dependencies across
different workspaces.

To setup `sccache`, install it with `cargo install sccache` and set
To setup `sccache`, install it with `cargo install --locked sccache` and set
`RUSTC_WRAPPER` environment variable to `sccache` before invoking Cargo. If
you use bash, it makes sense to add `export RUSTC_WRAPPER=sccache` to
`.bashrc`. Alternatively, you can set [`build.rustc-wrapper`] in the [Cargo
Expand Down
2 changes: 1 addition & 1 deletion doc/book/src/reference/source-replacement.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ made up of a set of `*.crate` files and an index like the normal registry is.
The primary way to manage and create local registry sources is through the
[`cargo-local-registry`][cargo-local-registry] subcommand,
[available on crates.io][cargo-local-registry] and can be installed with
`cargo install cargo-local-registry`.
`cargo install --locked cargo-local-registry`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I always have ? about this tool and local registries. They are like second-class citizens, but anyway.


[cargo-local-registry]: https://crates.io/crates/cargo-local-registry

Expand Down
2 changes: 1 addition & 1 deletion doc/contrib/src/documentation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Cargo has several types of documentation that contributors work with:
Building the book requires [mdBook]. To get it:

```console
$ cargo install mdbook
$ cargo install --locked mdbook
```

To build the book:
Expand Down