Skip to content

Commit fc82c42

Browse files
committed
Fix version detection for multi-module repo
1 parent 0b6b5c3 commit fc82c42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func pkgVersionFromGit(gitdir string, u *upstream, forcePrerelease bool) (string
3232
var commitsAhead int
3333

3434
// Find @latest version tag (whether annotated or not)
35-
cmd := exec.Command("git", "describe", "--abbrev=0", "--tags")
35+
cmd := exec.Command("git", "describe", "--abbrev=0", "--tags", "--exclude", "*/v*")
3636
cmd.Dir = gitdir
3737
if out, err := cmd.Output(); err == nil {
3838
latestTag = strings.TrimSpace(string(out))

0 commit comments

Comments
 (0)