From 99ba11ef1c468f5421777281159ab7b72e4eb7d9 Mon Sep 17 00:00:00 2001 From: Matthias Wiora Date: Sun, 6 Sep 2020 20:24:30 +0200 Subject: [PATCH] feat(build): moving version definition to the build process --- .goreleaser.yml | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index b7514e4..100568d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -11,7 +11,7 @@ builds: - 6 - 7 ldflags: > - -X main.Version={{.Version}} + -X main.VERSION={{.Version}} -X main.DateBuilt={{.Date}} archive: wrap_in_directory: true diff --git a/main.go b/main.go index fa2c62e..9938d75 100644 --- a/main.go +++ b/main.go @@ -10,7 +10,7 @@ import ( "runtime" ) -var VERSION = "0.3 alpha" +var VERSION = "custom" var appConfiguration APPconfig type APPconfig struct {