From 4acdc441d15d80058fbab9cf257e07bafdd05777 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 2 Apr 2020 08:58:45 -0700 Subject: [PATCH] add trimpaths for binary builds (#99) --- .goreleaser.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 311e219f..787831ed 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -18,8 +18,10 @@ builds: - arm64 env: - CGO_ENABLED=0 + flags: + - -trimpath ldflags: - - -s -w -X github.com/minio/warp/pkg.ReleaseTag={{.Tag}} -X github.com/minio/warp/pkg.CommitID={{.FullCommit}} -X github.com/minio/warp/pkg.Version={{.Version}} -X github.com/minio/warp/pkg.ShortCommitID={{.ShortCommit}} -X github.com/minio/warp/pkg.ReleaseTime={{.Date}} + - -s -w -X github.com/minio/warp/pkg.ReleaseTag={{.Tag}} -X github.com/minio/warp/pkg.CommitID={{.FullCommit}} -X github.com/minio/warp/pkg.Version={{.Version}} -X github.com/minio/warp/pkg.ShortCommitID={{.ShortCommit}} -X github.com/minio/warp/pkg.ReleaseTime={{.Date}} archives: - replacements: