Skip to content

Commit

Permalink
newt; go version requirement is now 1.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Kiiskila committed Mar 9, 2017
1 parent 7a6d02d commit 23ce34b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion INSTALLING.md
Expand Up @@ -11,7 +11,7 @@ when available. To find these, please go to https://mynewt.apache.org/.
# Installing From Source

The newt tool is written in Go (https://golang.org/). In order to build Apache
Mynewt, you must have Go 1.5 or later installed on your system. Please visit
Mynewt, you must have Go 1.7 or later installed on your system. Please visit
the Golang website for more information on installing Go (https://golang.org/).

Once you have Go installed, you can build newt by running the contained
Expand Down
6 changes: 3 additions & 3 deletions build.sh
Expand Up @@ -26,7 +26,7 @@ expandpath() {
)
}

### Ensure >= go1.5 is installed.
### Ensure >= go1.7 is installed.
go_ver_str="$(go version | cut -d ' ' -f 3)"
go_ver="${go_ver_str#go}"

Expand All @@ -49,9 +49,9 @@ then
go_min=0
fi

if [ ! "$go_maj" -gt 1 ] && [ ! "$go_min" -ge 5 ]
if [ ! "$go_maj" -gt 1 ] && [ ! "$go_min" -ge 7 ]
then
printf "* Error: go 1.5 or later is required (detected version: %s)\n" \
printf "* Error: go 1.7 or later is required (detected version: %s)\n" \
"$go_maj"."$go_min".X
exit 1
fi
Expand Down

0 comments on commit 23ce34b

Please sign in to comment.