ci: Remove paths from Go binaries for easier use with plugins

This commit is contained in:
Marius 2019-09-20 11:05:53 +02:00
parent 619555607a
commit a6a305f1c0
1 changed files with 1 additions and 0 deletions

View File

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