Skip to content

Commit 1a8d2ff

Browse files
committed
only use VCS info if build is of the go-toolkit
1 parent 9748370 commit 1a8d2ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/util/version/version.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ func init() {
3030
}
3131
}
3232
}
33-
if Version == "unknown" {
33+
if info.Main.Path == toolkitRepo && Version == "unknown" {
3434
// Try instead using vcs info
35-
3635
vcs := vcsInfo{}
3736
for _, v := range info.Settings {
3837
switch v.Key {

0 commit comments

Comments
 (0)