on master help sign in
book: Recommend '--locked' for cargo installs (#5438)
a39a2ceMichal Melewski
book/src/install.md+2−2
@@ -94,7 +94,7 @@ pacman -S mingw-w64-ucrt-x86_64-helix
94```
94```
95git clone https://github.com/helix-editor/helix
95git clone https://github.com/helix-editor/helix
96cd helix
96cd helix
97−cargo install --path helix-term
97+cargo install --path helix-term --locked
98```
98```
99
99
100This will install the `hx` binary to `$HOME/.cargo/bin` and build tree-sitter grammars in `./runtime/grammars`.
100This 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"
127
127
128The runtime location can be overridden via the `HELIX_RUNTIME` environment variable.
128The runtime location can be overridden via the `HELIX_RUNTIME` environment variable.
129
129
130−> NOTE: if `HELIX_RUNTIME` is set prior to calling `cargo install --path helix-term`,
130+> NOTE: if `HELIX_RUNTIME` is set prior to calling `cargo install --path helix-term --locked`,
131> tree-sitter grammars will be built in `$HELIX_RUNTIME/grammars`.
131> tree-sitter grammars will be built in `$HELIX_RUNTIME/grammars`.
132
132
133If you plan on keeping the repo locally, an alternative to copying/symlinking
133If you plan on keeping the repo locally, an alternative to copying/symlinking