Merge "SEBA-650: Update golang to 1.12"
diff --git a/jjb/python-unit.yaml b/jjb/python-unit.yaml
index 0cc9c06..b44f83e 100644
--- a/jjb/python-unit.yaml
+++ b/jjb/python-unit.yaml
@@ -48,7 +48,7 @@
# setup for go-based testing
mkdir -p ~/go/src
export GOPATH=~/go
- export PATH=$PATH:/usr/lib/go-1.10/bin:/usr/local/go/bin:~/go/bin
+ export PATH=$PATH:/usr/lib/go-1.12/bin:/usr/local/go/bin:~/go/bin
if [ -f 'Makefile' ]; then
echo "Makefile found, running 'make test'"
diff --git a/jjb/shell/make-unit.sh b/jjb/shell/make-unit.sh
index 4c83ea8..cb2ddf1 100755
--- a/jjb/shell/make-unit.sh
+++ b/jjb/shell/make-unit.sh
@@ -33,7 +33,7 @@
if [ ! -z "$DEST_GOPATH" ]; then
export GOPATH=${GOPATH:-~/go}
mkdir -p "$GOPATH/src/$DEST_GOPATH"
- export PATH=$PATH:/usr/lib/go-1.10/bin:/usr/local/go/bin:$GOPATH/bin
+ export PATH=$PATH:/usr/lib/go-1.12/bin:/usr/local/go/bin:$GOPATH/bin
test_path="$GOPATH/src/$DEST_GOPATH/$GERRIT_PROJECT"
ln -r -s "$WORKSPACE/$GERRIT_PROJECT" "$test_path"
else
diff --git a/jjb/verify/abstract-olt.yaml b/jjb/verify/abstract-olt.yaml
index 838322b..2dcff94 100644
--- a/jjb/verify/abstract-olt.yaml
+++ b/jjb/verify/abstract-olt.yaml
@@ -63,7 +63,7 @@
set -eux -o pipefail
export GOPATH=~/go
- export PATH=$PATH:/usr/lib/go-1.10/bin:/usr/local/go/bin:~/go/bin
+ export PATH=$PATH:/usr/lib/go-1.12/bin:/usr/local/go/bin:~/go/bin
# move code the proper location
mkdir -p $GOPATH/src/gerrit.opencord.org
diff --git a/jjb/verify/kafka-topic-exporter.yaml b/jjb/verify/kafka-topic-exporter.yaml
index cd2861a..7d4e8af 100644
--- a/jjb/verify/kafka-topic-exporter.yaml
+++ b/jjb/verify/kafka-topic-exporter.yaml
@@ -65,7 +65,7 @@
set -eux -o pipefail
export GOPATH=~/go
- export PATH=$PATH:/usr/lib/go-1.10/bin:/usr/local/go/bin:~/go/bin
+ export PATH=$PATH:/usr/lib/go-1.12/bin:/usr/local/go/bin:~/go/bin
# move code the proper location
mkdir -p $GOPATH/src/gerrit.opencord.org
diff --git a/jjb/verify/sadis-server.yaml b/jjb/verify/sadis-server.yaml
index e02caf6..55574ce 100644
--- a/jjb/verify/sadis-server.yaml
+++ b/jjb/verify/sadis-server.yaml
@@ -65,7 +65,7 @@
set -eux -o pipefail
export GOPATH=~/go
- export PATH=$PATH:/usr/lib/go-1.10/bin:/usr/local/go/bin:~/go/bin
+ export PATH=$PATH:/usr/lib/go-1.12/bin:/usr/local/go/bin:~/go/bin
# move code the proper location
mkdir -p $GOPATH/src/gerrit.opencord.org
diff --git a/jjb/verify/voltha-bbsim.yaml b/jjb/verify/voltha-bbsim.yaml
index 4c550ce..1a24489 100644
--- a/jjb/verify/voltha-bbsim.yaml
+++ b/jjb/verify/voltha-bbsim.yaml
@@ -65,7 +65,7 @@
set -eux -o pipefail
export GOPATH=~/go
- export PATH=$PATH:/usr/lib/go-1.10/bin:/usr/local/go/bin:~/go/bin
+ export PATH=$PATH:/usr/lib/go-1.12/bin:/usr/local/go/bin:~/go/bin
# move code the proper location
mkdir -p $GOPATH/src/gerrit.opencord.org
diff --git a/packer/provision/basebuild.sh b/packer/provision/basebuild.sh
index 62eebcc..9b1ce0c 100644
--- a/packer/provision/basebuild.sh
+++ b/packer/provision/basebuild.sh
@@ -48,7 +48,8 @@
stable"
# set up golang repo
- add-apt-repository ppa:gophers/archive
+ # docs: https://github.com/golang/go/wiki/Ubuntu
+ add-apt-repository ppa:longsleep/golang-backports
# set up kubernetes repo
cat << EOF | base64 -d > /tmp/k8s-apt-key.gpg
@@ -108,7 +109,7 @@
ebtables \
ethtool \
git \
- golang-1.10-go \
+ golang-1.12-go \
httpie \
jq \
kafkacat \
@@ -182,18 +183,18 @@
# Set PATH=$PATH:/usr/local/go/bin` to use these
export GOPATH=/usr/local/go
mkdir -p $GOPATH
- export PATH=$PATH:/usr/lib/go-1.10/bin:$GOPATH/bin
+ export PATH=$PATH:/usr/lib/go-1.12/bin:$GOPATH/bin
# converters for unit/coverage test
go get -v github.com/t-yuki/gocover-cobertura
go get -v github.com/jstemmer/go-junit-report
- # dep for go package dependencies w/versioning, version v0.5.0, adapted from:
+ # dep for go package dependencies w/versioning, version v0.5.2, adapted from:
# https://golang.github.io/dep/docs/installation.html#install-from-source
go get -d -u github.com/golang/dep
pushd $(go env GOPATH)/src/github.com/golang/dep
- git checkout "v0.5.0"
- go install -ldflags="-X main.version=v0.5.0" ./cmd/dep
+ git checkout "v0.5.2"
+ go install -ldflags="-X main.version=v0.5.2" ./cmd/dep
popd
# protoc-gen-go - Golang protbuf compiler extension for protoc (installed