From d90dce7e4d1af365f646d454a86ee70a6775b72b Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Wed, 15 Apr 2026 12:40:15 +1000 Subject: [PATCH] docs: Add `-trimpath` to installation instructions (#2529) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bbd1443a..3304ef2c 100644 --- a/README.md +++ b/README.md @@ -42,21 +42,21 @@ Building from the source requires [Go](https://go.dev/). On Unix: ```bash -env CGO_ENABLED=0 go install -ldflags="-s -w" github.com/gokcehan/lf@latest +env CGO_ENABLED=0 go install -trimpath -ldflags="-s -w" github.com/gokcehan/lf@latest ``` On Windows `cmd`: ```cmd set CGO_ENABLED=0 -go install -ldflags="-s -w" github.com/gokcehan/lf@latest +go install -trimpath -ldflags="-s -w" github.com/gokcehan/lf@latest ``` On Windows `PowerShell`: ```powershell $env:CGO_ENABLED = '0' -go install -ldflags="-s -w" github.com/gokcehan/lf@latest +go install -trimpath -ldflags="-s -w" github.com/gokcehan/lf@latest ``` ## Usage