From a39a2ce9a8dbf0f0e44073c8a2849a4c1dfc12ef Mon Sep 17 00:00:00 2001 From: Michal Melewski Date: Sun, 8 Jan 2023 04:55:35 +0100 Subject: [PATCH] book: Recommend '--locked' for cargo installs (#5438) --- book/src/install.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/install.md b/book/src/install.md index 92097cfa..bf0ff079 100644 --- a/book/src/install.md +++ b/book/src/install.md @@ -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 "\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