Correct comment typo in build.go (#8234)

This commit is contained in:
Greg 2022-04-10 13:24:57 -07:00 committed by GitHub
parent db72579f0e
commit bca6d31b95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -985,7 +985,7 @@ func getGitVersion() (string, error) {
v0 := string(bs) v0 := string(bs)
// To be more semantic-versionish and ensure proper ordering in our // To be more semantic-versionish and ensure proper ordering in our
// upgrade process, we make sure there's only one hypen in the version. // upgrade process, we make sure there's only one hyphen in the version.
versionRe := regexp.MustCompile(`-([0-9]{1,3}-g[0-9a-f]{5,10}(-dirty)?)`) versionRe := regexp.MustCompile(`-([0-9]{1,3}-g[0-9a-f]{5,10}(-dirty)?)`)
if m := versionRe.FindStringSubmatch(vcur); len(m) > 0 { if m := versionRe.FindStringSubmatch(vcur); len(m) > 0 {