Skip to content

Commit

Permalink
Prevent overwriting version set by build tag
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHendrickson committed Jun 10, 2022
1 parent e02d803 commit ba24f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/mydyndns/cli/cli.go
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit ba24f55

Please sign in to comment.