Skip to content

Commit 956a09e

Browse files
author
Nick Silkey
committed
Bump golang version to 1.10
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).
1 parent 0141d25 commit 956a09e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: go
22

33
go:
4-
- 1.4
4+
- 1.10
55

66
sudo: false
77

script/build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ build() {
1515

1616
# Check the go version
1717
EQ="="
18-
regex="(go[0-1].[0-4])"
18+
# If we are golang <= 1.4, ' ' for EQ ... else '='
19+
regex="(go[0-1].[0-4](?![0-9]))"
1920
if [[ `go version` =~ $regex ]]; then
2021
EQ=" "
2122
fi

0 commit comments

Comments
 (0)