goversion: include pre-releases in VersionAfterOrEqual check (#3607)
Change VersionAfterOrEqual(x, A, B) to return true for pre-releases of version A.B. This is what it did before, it was broken when goversion was changed to support the new version format.
This commit is contained in:
parent
5b52958909
commit
a9c67f1548
@ -209,7 +209,7 @@ func Installed() (GoVersion, bool) {
|
||||
// or go version) is major.minor or a later version, or a development
|
||||
// version.
|
||||
func VersionAfterOrEqual(version string, major, minor int) bool {
|
||||
return VersionAfterOrEqualRev(version, major, minor, -1)
|
||||
return VersionAfterOrEqualRev(version, major, minor, betaEnd)
|
||||
}
|
||||
|
||||
// VersionAfterOrEqualRev checks that version (as returned by runtime.Version()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user