File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ TAR_FILENAME := $(NAME)-$(VERSION).$(TAR_EXT)
18
18
TAR_LOC := .
19
19
TAR_FILE := $(TAR_LOC ) /$(TAR_FILENAME )
20
20
GO_MIN_VERSION := 1.5.1
21
- GO_MAX_VERSION := 1.6.2
21
+ GO_MAX_VERSION := 1.8
22
22
GO_VERSION := $(shell go version | cut -d' ' -f3 | sed 's/go//')
23
23
GOLINT_CMD := golint -set_exit_status
24
24
GOFMT_CMD := gofmt -s -l
Original file line number Diff line number Diff line change 4
4
require 'fileutils'
5
5
6
6
# netplugin_synced_gopath="/opt/golang"
7
+ go_version = ENV [ "GO_VERSION" ] || "1.7.3"
7
8
gopath_folder = "/opt/gopath"
8
9
9
10
cluster_ip_nodes = ""
@@ -26,6 +27,10 @@ echo "export CLUSTER_NODE_IPS=$3" >> /etc/profile.d/envvar.sh
26
27
echo "export CONTIV_CLUSTER_STORE=$7" >> /etc/profile.d/envvar.sh
27
28
source /etc/profile.d/envvar.sh
28
29
30
+ rm -rf /usr/local/go
31
+
32
+ curl -sSL https://storage.googleapis.com/golang/go#{ go_version } .linux-amd64.tar.gz | sudo tar -xz -C /usr/local
33
+
29
34
if [[ $# -gt 9 ]] && [[ $10 != "" ]]; then
30
35
shift; shift; shift; shift; shift; shift; shift; shift; shift
31
36
echo "export $@" >> /etc/profile.d/envvar.sh
You can’t perform that action at this time.
0 commit comments