Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

build: add -trimpath to release build for reproduceable builds

Nick Craig-Woodba7f7c83196f
diff --git a/bin/cross-compile.go b/bin/cross-compile.go
index 2280a7408..22f57d3fd 100644
--- a/bin/cross-compile.go
+++ b/bin/cross-compile.go
@@ -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,