ci: Remove paths from Go binaries for easier use with plugins
This commit is contained in:
parent
619555607a
commit
a6a305f1c0
|
@ -16,6 +16,7 @@ function compile {
|
||||||
rm -rf "$dir"
|
rm -rf "$dir"
|
||||||
mkdir -p "$dir"
|
mkdir -p "$dir"
|
||||||
GOOS=$os GOARCH=$arch go build \
|
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)'" \
|
-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
|
-o "$dir/tusd$ext" ./cmd/tusd/main.go
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue