docs: Add -trimpath to installation instructions (#2529)
This commit is contained in:
1 parent
58c844786f
commit
d90dce7e4d
1 file changed
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user