Update to go1.8.3

Same version as k8s. Full godeps update will go out
in separate commit.
This commit is contained in:
Maciej Pytel 2017-06-01 17:19:11 +02:00
parent 60f6e07dc7
commit 78509c554e
4 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@ language: go
matrix: matrix:
include: include:
- go: 1.7 - go: 1.8
install: install:
- mkdir -p $HOME/gopath/src/k8s.io - mkdir -p $HOME/gopath/src/k8s.io

View File

@ -1,6 +1,6 @@
{ {
"ImportPath": "k8s.io/contrib/cluster-autoscaler", "ImportPath": "k8s.io/contrib/cluster-autoscaler",
"GoVersion": "go1.7", "GoVersion": "go1.8",
"GodepVersion": "v79", "GodepVersion": "v79",
"Packages": [ "Packages": [
"./..." "./..."

View File

@ -18,9 +18,9 @@ MAINTAINER Marcin Wielgus "mwielgus@google.com"
RUN apt-get update && apt-get install --yes git wget make\ RUN apt-get update && apt-get install --yes git wget make\
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN wget https://storage.googleapis.com/golang/go1.7.5.linux-amd64.tar.gz \ RUN wget https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz \
&& tar -xvf go1.7.5.linux-amd64.tar.gz \ && tar -xvf go1.8.3.linux-amd64.tar.gz \
&& rm go1.7.5.linux-amd64.tar.gz && rm go1.8.3.linux-amd64.tar.gz
ENV GOROOT /go ENV GOROOT /go
ENV GOPATH /gopath/ ENV GOPATH /gopath/

View File

@ -24,7 +24,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
GO_VERSION=($(go version)) GO_VERSION=($(go version))
if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.2|go1.3|go1.4|go1.5|go1.6|go1.7') ]]; then if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.2|go1.3|go1.4|go1.5|go1.6|go1.7|go1.8') ]]; then
echo "Unknown go version '${GO_VERSION}', skipping gofmt." echo "Unknown go version '${GO_VERSION}', skipping gofmt."
exit 1 exit 1
fi fi