mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 17:14:44 +01:00
build: add -trimpath to release build for reproduceable builds
This commit is contained in:
parent
77fb3c2511
commit
ba7f7c8319
@ -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 New Issue
Block a user