Add --locked flag to cargo install invocation

This patch adds the --locked flag to the cargo install invocation in
INSTALL.md as this makes sure that the users ends up with tested and
working dependency versions.
This commit is contained in:
Robin Krahl 2021-06-06 13:59:59 +02:00
parent 48405481d0
commit 686b8bb1b0
No known key found for this signature in database
GPG Key ID: 8E9B0870524F69D8

View File

@ -1,5 +1,5 @@
<!---
SPDX-FileCopyrightText: 2020 Robin Krahl <robin.krahl@ireas.org>
SPDX-FileCopyrightText: 2020-2021 Robin Krahl <robin.krahl@ireas.org>
SPDX-License-Identifier: MIT
-->
@ -74,5 +74,9 @@ To compile rusty-man, you need Rust 1.40 or later.
### Installing from crates.io
```
cargo install rusty-man
cargo install rusty-man --locked
```
You can omit the `--locked` option to use the latest dependency versions
available. Note that this might cause issues if a dependency breaks semantic
versioning.