aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Trinkala2023-01-07 21:42:45 +0000
committerGitHub2023-01-07 21:42:45 +0000
commit95d4fdc255cc880b5dbcb91851eb53ffe2cfce97 (patch)
treec717e00ff0584745350796dc70d1c5b56bf74430
parent6ae092acceaf766f4e84f67b17547f2f9de678be (diff)
Update the cargo installation instructions to include --locked (#5443)
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index e4683d35..60125e11 100644
--- a/README.md
+++ b/README.md
@@ -52,7 +52,7 @@ If you would like to build from source:
```shell
git clone https://github.com/helix-editor/helix
cd helix
-cargo install --path helix-term
+cargo install --locked --path helix-term
```
This will install the `hx` binary to `$HOME/.cargo/bin` and build tree-sitter grammars in `./runtime/grammars`.
@@ -84,7 +84,7 @@ mklink /D runtime "<helix-repo>\runtime"
The runtime location can be overridden via the `HELIX_RUNTIME` environment variable.
-> NOTE: if `HELIX_RUNTIME` is set prior to calling `cargo install --path helix-term`,
+> NOTE: if `HELIX_RUNTIME` is set prior to calling `cargo install --locked --path helix-term`,
> tree-sitter grammars will be built in `$HELIX_RUNTIME/grammars`.
If you plan on keeping the repo locally, an alternative to copying/symlinking