Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ builds:
ldflags:
- -s -w
- -X github.com/DataDog/pup/internal/version.Version={{.Version}}
- -X github.com/DataDog/pup/internal/version.Commit={{.Commit}}
- -X github.com/DataDog/pup/internal/version.Date={{.Date}}
- -X github.com/DataDog/pup/internal/version.BuiltBy=goreleaser
- -X github.com/DataDog/pup/internal/version.GitCommit={{.Commit}}
- -X github.com/DataDog/pup/internal/version.BuildDate={{.Date}}

archives:
- id: pup
Expand Down
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ DATE := $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
# Build flags
LDFLAGS := -s -w \
-X github.com/DataDog/pup/internal/version.Version=$(VERSION) \
-X github.com/DataDog/pup/internal/version.Commit=$(COMMIT) \
-X github.com/DataDog/pup/internal/version.Date=$(DATE) \
-X github.com/DataDog/pup/internal/version.BuiltBy=makefile
-X github.com/DataDog/pup/internal/version.GitCommit=$(COMMIT) \
-X github.com/DataDog/pup/internal/version.BuildDate=$(DATE)

# Go build flags
GO_BUILD_FLAGS := -trimpath -ldflags "$(LDFLAGS)"
Expand Down