You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/06/20 17:46:31 UTC

[GitHub] aditihilbert closed pull request #181: check go version is >= 1.10

aditihilbert closed pull request #181: check go version is >= 1.10
URL: https://github.com/apache/mynewt-newt/pull/181
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/build.sh b/build.sh
index c4dbcbd1..b56f0e43 100755
--- a/build.sh
+++ b/build.sh
@@ -26,7 +26,7 @@ expandpath() {
     )
 }
 
-### Ensure >= go1.7 is installed.
+### Ensure >= go1.10 is installed.
 go_ver_str="$(go version | cut -d ' ' -f 3)"
 go_ver="${go_ver_str#go}"
 
@@ -49,9 +49,9 @@ then
     go_min=0
 fi
 
-if [ ! "$go_maj" -gt 1 ] && [ ! "$go_min" -ge 7 ]
+if [ ! "$go_maj" -gt 1 ] && [ ! "$go_min" -ge 10 ]
 then
-    printf "* Error: go 1.7 or later is required (detected version: %s)\n" \
+    printf "* Error: go 1.10 or later is required (detected version: %s)\n" \
         "$go_maj"."$go_min".X
     exit 1
 fi


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services