Skip to content

Commit

Permalink
chore: trim local build information (evcc-io#9246)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Aug 4, 2023
1 parent 146c881 commit 9a28381
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .goreleaser-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ release:

builds:
- id: evcc
main: main.go
main: .
flags:
- -trimpath
- -tags=release
ldflags:
- -X github.com/evcc-io/evcc/server.Version={{ .Tag }} -X github.com/evcc-io/evcc/server.Commit={{ .ShortCommit }} -s -w
Expand Down
3 changes: 2 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ release:

builds:
- id: evcc
main: main.go
main: .
flags:
- -trimpath
- -tags=release
ldflags:
- -X github.com/evcc-io/evcc/server.Version={{ .Version }} -s -w
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ VERSION := $(if $(TAG_NAME),$(TAG_NAME),$(SHA))
BUILD_DATE := $(shell date -u '+%Y-%m-%d_%H:%M:%S')
BUILD_TAGS := -tags=release
LD_FLAGS := -X github.com/evcc-io/evcc/server.Version=$(VERSION) -X github.com/evcc-io/evcc/server.Commit=$(COMMIT) -s -w
BUILD_ARGS := -ldflags='$(LD_FLAGS)'
BUILD_ARGS := -trimpath -ldflags='$(LD_FLAGS)'

# docker
DOCKER_IMAGE := evcc/evcc
Expand Down

0 comments on commit 9a28381

Please sign in to comment.