book: Recommend '--locked' for cargo installs (#5438)

pull/5449/head
Michal Melewski 2 years ago committed by GitHub
parent 95d4fdc255
commit a39a2ce9a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -94,7 +94,7 @@ pacman -S mingw-w64-ucrt-x86_64-helix
```
git clone https://github.com/helix-editor/helix
cd helix
cargo install --path helix-term
cargo install --path helix-term --locked
```
This will install the `hx` binary to `$HOME/.cargo/bin` and build tree-sitter grammars in `./runtime/grammars`.
@ -127,7 +127,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 --path helix-term --locked`,
> tree-sitter grammars will be built in `$HELIX_RUNTIME/grammars`.
If you plan on keeping the repo locally, an alternative to copying/symlinking

Loading…
Cancel
Save