Skip to content

Commit

Permalink
Bump golang version to 1.10
Browse files Browse the repository at this point in the history
Allows local builds in golang 1.10 on OS X to work.  Done as part of
needing a new spin for new OS X version (10.13).
  • Loading branch information
Nick Silkey committed Feb 28, 2018
1 parent 0141d25 commit 956a09e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: go

go:
- 1.4
- 1.10

sudo: false

Expand Down
3 changes: 2 additions & 1 deletion script/build
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ build() {

# Check the go version
EQ="="
regex="(go[0-1].[0-4])"
# If we are golang <= 1.4, ' ' for EQ ... else '='
regex="(go[0-1].[0-4](?![0-9]))"
if [[ `go version` =~ $regex ]]; then
EQ=" "
fi
Expand Down

0 comments on commit 956a09e

Please sign in to comment.