build: add -trimpath to release build for reproduceable builds

This commit is contained in:
Nick Craig-Wood 2020-04-30 12:43:40 +01:00
parent 77fb3c2511
commit ba7f7c8319

View File

@ -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,