Bump go version in configure to check for go 1.12
This commit is contained in:
		
							parent
							
								
									f0b6f1525b
								
							
						
					
					
						commit
						006322562d
					
				| 
						 | 
					@ -81,7 +81,7 @@ check_for() {
 | 
				
			||||||
check_go_version() {
 | 
					check_go_version() {
 | 
				
			||||||
  echo -n "Checking go version... "
 | 
					  echo -n "Checking go version... "
 | 
				
			||||||
  GO_VERSION=$(${tools[go]} version | ${tools[awk]} '{where = match($0, /[0-9]\.[0-9]+\.[0-9]*/); if (where != 0) print substr($0, RSTART, RLENGTH)}')
 | 
					  GO_VERSION=$(${tools[go]} version | ${tools[awk]} '{where = match($0, /[0-9]\.[0-9]+\.[0-9]*/); if (where != 0) print substr($0, RSTART, RLENGTH)}')
 | 
				
			||||||
  vercomp $GO_VERSION 1.11
 | 
					  vercomp $GO_VERSION 1.12
 | 
				
			||||||
  case $? in
 | 
					  case $? in
 | 
				
			||||||
    0) ;&
 | 
					    0) ;&
 | 
				
			||||||
    1)
 | 
					    1)
 | 
				
			||||||
| 
						 | 
					@ -91,7 +91,7 @@ check_go_version() {
 | 
				
			||||||
      ;;
 | 
					      ;;
 | 
				
			||||||
    2)
 | 
					    2)
 | 
				
			||||||
      printf "${RED}"
 | 
					      printf "${RED}"
 | 
				
			||||||
      echo "$GO_VERSION < 1.11"
 | 
					      echo "$GO_VERSION < 1.12"
 | 
				
			||||||
      exit 1
 | 
					      exit 1
 | 
				
			||||||
      ;;
 | 
					      ;;
 | 
				
			||||||
  esac
 | 
					  esac
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue