Update the cargo installation instructions to include --locked (#5443)

pull/5445/head
Mike Trinkala 2 years ago committed by GitHub
parent 6ae092acce
commit 95d4fdc255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,7 +52,7 @@ If you would like to build from source:
```shell ```shell
git clone https://github.com/helix-editor/helix git clone https://github.com/helix-editor/helix
cd 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`. 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. 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`. > tree-sitter grammars will be built in `$HELIX_RUNTIME/grammars`.
If you plan on keeping the repo locally, an alternative to copying/symlinking If you plan on keeping the repo locally, an alternative to copying/symlinking

Loading…
Cancel
Save