From a6a305f1c0f2ec0e13a45a3d58ec213061ac450d Mon Sep 17 00:00:00 2001 From: Marius Date: Fri, 20 Sep 2019 11:05:53 +0200 Subject: [PATCH] ci: Remove paths from Go binaries for easier use with plugins --- scripts/build_funcs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build_funcs.sh b/scripts/build_funcs.sh index 0fe61b6..5e27b3e 100755 --- a/scripts/build_funcs.sh +++ b/scripts/build_funcs.sh @@ -16,6 +16,7 @@ function compile { rm -rf "$dir" mkdir -p "$dir" GOOS=$os GOARCH=$arch go build \ + -trimpath \ -ldflags="-X github.com/tus/tusd/cmd/tusd/cli.VersionName=${version} -X github.com/tus/tusd/cmd/tusd/cli.GitCommit=${commit} -X 'github.com/tus/tusd/cmd/tusd/cli.BuildDate=$(date --utc)'" \ -o "$dir/tusd$ext" ./cmd/tusd/main.go }