From 9139817fb669d560188712aa2219118d6bc8f667 Mon Sep 17 00:00:00 2001 From: andig Date: Thu, 30 Jul 2020 13:26:58 +0200 Subject: [PATCH] Fix crash in release version by adding release tag to goreleaser --- .goreleaser.yml | 2 ++ Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 3ecf65fa9..f15bb0f94 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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: diff --git a/Makefile b/Makefile index cb30a294c..532330dd4 100644 --- a/Makefile +++ b/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)