From fc2d08b18dde4116782d0ce6c7193b2d236a096e Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Thu, 12 Jan 2023 12:10:12 -0600 Subject: [PATCH] Backport '--locked' to last release 'cargo install' instructions Closes #5515 --- install.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.html b/install.html index db2f0effa..162899f78 100644 --- a/install.html +++ b/install.html @@ -188,7 +188,7 @@ or MSYS2.

Build from source

git clone https://github.com/helix-editor/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.

Helix also needs its runtime files so make sure to copy/symlink the runtime/ directory into the @@ -211,7 +211,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 --locked --path helix-term, tree-sitter grammars will be built in $HELIX_RUNTIME/grammars.

If you plan on keeping the repo locally, an alternative to copying/symlinking