Skip to content

Commit

Permalink
Upgrade to go 1.14.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rifelpet committed Jul 5, 2020
1 parent 03e620b commit 78b57bd
Show file tree
Hide file tree
Showing 10 changed files with 109 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
go: [1.13, 1.14]
exclude:
- os: macos-10.15
go: 1.14
go: 1.13
fail-fast: true

runs-on: ${{ matrix.os }}
Expand All @@ -45,7 +45,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-18.04]
go: [1.13]
go: [1.14]
fail-fast: true

runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ jobs:
- name: Verify
arch: amd64
os: linux
go: 1.13.x
go: 1.14.x
script:
- GOPROXY=https://proxy.golang.org make travis-ci
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ GCS_URL=$(GCS_LOCATION:gs://%=https://storage.googleapis.com/%)
LATEST_FILE?=latest-ci.txt
GOPATH_1ST:=$(shell go env | grep GOPATH | cut -f 2 -d \")
UNIQUE:=$(shell date +%s)
GOVERSION=1.13.9
GOVERSION=1.14.4
BUILD=$(KOPS_ROOT)/.build
LOCAL=$(BUILD)/local
BINDATA_TARGETS=upup/models/bindata.go
Expand All @@ -45,9 +45,6 @@ BAZEL_CONFIG?=
API_OPTIONS?=
GCFLAGS?=

# This can be removed when we upgrade to go 1.14
export GOFLAGS=-mod=vendor

UPLOAD_CMD=$(KOPS_ROOT)/hack/upload

# Unexport environment variables that can affect tests and are not used in builds
Expand Down Expand Up @@ -448,7 +445,7 @@ gomod-prereqs:

.PHONY: gomod
gomod: gomod-prereqs
GO111MODULE=on GOFLAGS= go mod vendor
GO111MODULE=on go mod vendor
# Switch weavemesh to use peer_name_hash - bazel rule-go doesn't support build tags yet
rm vendor/github.com/weaveworks/mesh/peer_name_mac.go
sed -i -e 's/peer_name_hash/!peer_name_mac/g' vendor/github.com/weaveworks/mesh/peer_name_hash.go
Expand Down
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe
go_rules_dependencies()

go_register_toolchains(
go_version = "1.13.9",
go_version = "1.14.4",
)

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

FROM alpine:3.8

ARG GO_VERSION=1.13.9
ARG GO_VERSION=1.14.4

# KOPS_GITISH: Modify to build at an explicit tag/gitish
ARG KOPS_GITISH=release
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module k8s.io/kops

go 1.13
go 1.14

// Version kubernetes-1.18.0 => tag v0.18.1

Expand Down
9 changes: 4 additions & 5 deletions hack/make-apimachinery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,15 @@ mkdir -p "${WORK_DIR}/go/"
cp -R "${GOPATH}/src/k8s.io/kops/vendor/" "${WORK_DIR}/go/src"

unset GOBIN
unset GOFLAGS

env GOBIN="${WORK_DIR}/go/bin" GOPATH="${WORK_DIR}/go/" go install -v k8s.io/code-generator/cmd/conversion-gen/
env GOBIN="${WORK_DIR}/go/bin" GOPATH="${WORK_DIR}/go/" go install -mod=mod -v k8s.io/code-generator/cmd/conversion-gen/
cp "${WORK_DIR}/go/bin/conversion-gen" "${GOPATH}/bin/"

env GOBIN="${WORK_DIR}/go/bin" GOPATH="${WORK_DIR}/go/" go install k8s.io/code-generator/cmd/deepcopy-gen/
env GOBIN="${WORK_DIR}/go/bin" GOPATH="${WORK_DIR}/go/" go install -mod=mod k8s.io/code-generator/cmd/deepcopy-gen/
cp "${WORK_DIR}/go/bin/deepcopy-gen" "${GOPATH}/bin/"

env GOBIN="${WORK_DIR}/go/bin" GOPATH="${WORK_DIR}/go/" go install k8s.io/code-generator/cmd/defaulter-gen/
env GOBIN="${WORK_DIR}/go/bin" GOPATH="${WORK_DIR}/go/" go install -mod=mod k8s.io/code-generator/cmd/defaulter-gen/
cp "${WORK_DIR}/go/bin/defaulter-gen" "${GOPATH}/bin/"

env GOBIN="${WORK_DIR}/go/bin" GOPATH="${WORK_DIR}/go/" go install k8s.io/code-generator/cmd/client-gen/
env GOBIN="${WORK_DIR}/go/bin" GOPATH="${WORK_DIR}/go/" go install -mod=mod k8s.io/code-generator/cmd/client-gen/
cp "${WORK_DIR}/go/bin/client-gen" "${GOPATH}/bin/"
2 changes: 1 addition & 1 deletion images/dns-controller-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN apt-get update && apt-get install --yes --reinstall lsb-base \
&& rm -rf /var/lib/apt/lists/*

# Install golang
RUN curl -L https://storage.googleapis.com/golang/go1.13.9.linux-amd64.tar.gz | tar zx -C /usr/local
RUN curl -L https://storage.googleapis.com/golang/go1.14.4.linux-amd64.tar.gz | tar zx -C /usr/local
ENV PATH $PATH:/usr/local/go/bin

COPY onbuild.sh /onbuild.sh
2 changes: 1 addition & 1 deletion images/protokube-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN apt-get update && apt-get install --yes --reinstall lsb-base \
&& rm -rf /var/lib/apt/lists/*

# Install golang
RUN curl -L https://storage.googleapis.com/golang/go1.13.9.linux-amd64.tar.gz | tar zx -C /usr/local
RUN curl -L https://storage.googleapis.com/golang/go1.14.4.linux-amd64.tar.gz | tar zx -C /usr/local
ENV PATH $PATH:/usr/local/go/bin

COPY onbuild.sh /onbuild.sh
Loading

0 comments on commit 78b57bd

Please sign in to comment.