Skip to content

Commit

Permalink
fix: fix fallback to Git tag if VCS is unavailable (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbrunet authored Oct 7, 2024
1 parent 22d3285 commit ae4b42a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func loadVersion() Version {
// ref: https://github.com/golang/go/issues/51279
// Fallback to use module version and stop here as vcs information is incomplete.
if revision == "" {
if buildInfo.Main.Version != "" {
if buildInfo.Main.Version != "(devel)" {
// fallback to use module version (legacy usage)
rv.Version = buildInfo.Main.Version
}
Expand Down

0 comments on commit ae4b42a

Please sign in to comment.