From 388fb0ffc1dab1a815e45c9a925e916f4c514ca9 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Fri, 27 Jan 2023 18:21:23 -0800 Subject: [PATCH] readme: add `--locked` to `cargo install` step 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. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b0b896129..c5b411883 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -226,7 +226,7 @@ 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 ``` @@ -234,7 +234,7 @@ cargo install --git https://github.com/martinvonz/jj.git --bin jj jujutsu 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 ```