Skip to content

Commit

Permalink
only use VCS info if build is of the go-toolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
chocolatkey committed Feb 21, 2025
1 parent 9748370 commit 1a8d2ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/util/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ func init() {
}
}
}
if Version == "unknown" {
if info.Main.Path == toolkitRepo && Version == "unknown" {
// Try instead using vcs info

vcs := vcsInfo{}
for _, v := range info.Settings {
switch v.Key {
Expand Down

0 comments on commit 1a8d2ff

Please sign in to comment.