Fix crash in release version by adding release tag to goreleaser
This commit is contained in:
parent
e2c0ea9fcf
commit
9139817fb6
2 changed files with 3 additions and 1 deletions
|
|
@ -8,6 +8,8 @@ before:
|
|||
builds:
|
||||
- id: evcc
|
||||
main: main.go
|
||||
flags:
|
||||
- -tags=release
|
||||
ldflags:
|
||||
- -X github.com/andig/evcc/server.Version={{.Version}} -X github.com/andig/evcc/server.Commit={{.ShortCommit}}
|
||||
env:
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -29,7 +29,7 @@ assets:
|
|||
|
||||
build:
|
||||
@echo Version: $(VERSION) $(BUILD_DATE)
|
||||
go build -v -tags release -ldflags '-X "github.com/andig/evcc/server.Version=${VERSION}" -X "github.com/andig/evcc/server.Commit=${SHA}"'
|
||||
go build -v -tags=release -ldflags '-X "github.com/andig/evcc/server.Version=${VERSION}" -X "github.com/andig/evcc/server.Commit=${SHA}"'
|
||||
|
||||
publish-images:
|
||||
@echo Version: $(VERSION) $(BUILD_DATE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue