build: add -trimpath to release build for reproduceable builds
This commit is contained in:
parent
77fb3c2511
commit
ba7f7c8319
1 changed files with 1 additions and 0 deletions
|
@ -182,6 +182,7 @@ func compileArch(version, goos, goarch, dir string) bool {
|
|||
args := []string{
|
||||
"go", "build",
|
||||
"--ldflags", "-s -X github.com/rclone/rclone/fs.Version=" + version,
|
||||
"-trimpath",
|
||||
"-i",
|
||||
"-o", output,
|
||||
"-tags", *tags,
|
||||
|
|
Loading…
Reference in a new issue