on master help sign in
Update the cargo installation instructions to include --locked (#5443)
95d4fdcMike Trinkala
README.md+2−2
@@ -52,7 +52,7 @@ If you would like to build from source:
52```shell
52```shell
53git clone https://github.com/helix-editor/helix
53git clone https://github.com/helix-editor/helix
54cd helix
54cd helix
55−cargo install --path helix-term
55+cargo install --locked --path helix-term
56```
56```
57
57
58This will install the `hx` binary to `$HOME/.cargo/bin` and build tree-sitter grammars in `./runtime/grammars`.
58This 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"
84
84
85The runtime location can be overridden via the `HELIX_RUNTIME` environment variable.
85The runtime location can be overridden via the `HELIX_RUNTIME` environment variable.
86
86
87−> NOTE: if `HELIX_RUNTIME` is set prior to calling `cargo install --path helix-term`,
87+> NOTE: if `HELIX_RUNTIME` is set prior to calling `cargo install --locked --path helix-term`,
88> tree-sitter grammars will be built in `$HELIX_RUNTIME/grammars`.
88> tree-sitter grammars will be built in `$HELIX_RUNTIME/grammars`.
89
89
90If you plan on keeping the repo locally, an alternative to copying/symlinking
90If you plan on keeping the repo locally, an alternative to copying/symlinking