ci: Remove paths from Go binaries for easier use with plugins
@@ -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
}
