From ba24f55c387c60d1a1ddbcc5003c78328770c07a Mon Sep 17 00:00:00 2001 From: TylerHendrickson Date: Fri, 10 Jun 2022 15:23:51 -0500 Subject: [PATCH] Prevent overwriting version set by build tag --- cmd/mydyndns/cli/cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mydyndns/cli/cli.go b/cmd/mydyndns/cli/cli.go index 10bd2a7..7bc867e 100644 --- a/cmd/mydyndns/cli/cli.go +++ b/cmd/mydyndns/cli/cli.go @@ -24,7 +24,7 @@ var ( ) func init() { - if info, ok := debug.ReadBuildInfo(); ok { + if info, ok := debug.ReadBuildInfo(); Version == "dev" && ok { Version = info.Main.Version } }