Skip to content

Commit

Permalink
ci: Remove paths from Go binaries for easier use with plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Acconut committed Sep 20, 2019
1 parent 6195556 commit a6a305f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build_funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a6a305f

Please sign in to comment.