Skip to content

Commit

Permalink
enable debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
dmachard committed Oct 14, 2023
1 parent fce7d82 commit 9fde998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ builds:
- CGO_ENABLED=0

ldflags:
- -s -w
# - -s -w
- -X github.com/prometheus/common/version.Version={{.Version}}
- -X github.com/prometheus/common/version.Revision={{.Commit}}
- -X github.com/prometheus/common/version.Branch={{.Branch}}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ VERSION ?= $(shell git describe --tags --abbrev=0 ${COMMIT} 2>/dev/null | cut -c
VERSION := $(or $(VERSION),$(COMMIT))

LD_FLAGS ?=
LD_FLAGS += -s -w # turns off debugging information to get the smallest binaries
#LD_FLAGS += -s -w # turns off debugging information to get the smallest binaries
LD_FLAGS += -X github.com/prometheus/common/version.Version=$(VERSION)
LD_FLAGS += -X github.com/prometheus/common/version.Revision=$(COMMIT)
LD_FLAGS += -X github.com/prometheus/common/version.Branch=$(BRANCH)
Expand Down

0 comments on commit 9fde998

Please sign in to comment.