Skip to content

Commit

Permalink
readme: add --locked to cargo install step
Browse files Browse the repository at this point in the history
Our installation instructions don't currently work with Rust < 1.64
because `clap` updated their MSRV to 1.64, and `cargo install` without
`--locked` bypasses `Cargo.lock` and selects the version of `clap`
that needs Rust 1.64.
  • Loading branch information
martinvonz committed Jan 28, 2023
1 parent 29eb7a1 commit 388fb0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ sudo apt-get install libssl-dev openssl pkg-config

Now run:
```shell script
cargo install --git https://github.com/martinvonz/jj.git --bin jj jujutsu
cargo install --git https://github.com/martinvonz/jj.git --locked --bin jj jujutsu
```


Expand Down Expand Up @@ -226,15 +226,15 @@ export PKG_CONFIG_PATH="$(brew --prefix)/opt/openssl@3/lib/pkgconfig"

Now run:
```shell script
cargo install --git https://github.com/martinvonz/jj.git --bin jj jujutsu
cargo install --git https://github.com/martinvonz/jj.git --locked --bin jj jujutsu
```


### Windows

Run:
```shell script
cargo install --git https://github.com/martinvonz/jj.git --bin jj jujutsu --features vendored-openssl
cargo install --git https://github.com/martinvonz/jj.git --locked --bin jj jujutsu --features vendored-openssl
```


Expand Down

0 comments on commit 388fb0f

Please sign in to comment.