good morning!!!!

Skip to content
Snippets Groups Projects
Commit 9752fdcc authored by Paul Xue's avatar Paul Xue
Browse files

check major version first

parent 95d3d3d5
No related branches found
No related tags found
No related merge requests found
...@@ -249,6 +249,11 @@ func (s *Source) versionAtLeast(version ...int) bool { ...@@ -249,6 +249,11 @@ func (s *Source) versionAtLeast(version ...int) bool {
s.version = buildInfo.VersionArray s.version = buildInfo.VersionArray
} }
// Check major version first
if s.version[0] > version[0] {
return true
}
for i := range version { for i := range version {
if i == len(s.version) { if i == len(s.version) {
return false return false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment