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:
|
On Unix:
|
||||||
|
|
||||||
```bash
|
```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`:
|
On Windows `cmd`:
|
||||||
|
|
||||||
```cmd
|
```cmd
|
||||||
set CGO_ENABLED=0
|
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`:
|
On Windows `PowerShell`:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
$env:CGO_ENABLED = '0'
|
$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
|
## Usage
|
||||||
|
|||||||
Reference in new issue
Block a user