From a665b7e8ad79801a3c23f20e021288116937b849 Mon Sep 17 00:00:00 2001 From: Feruzjon Muyassarov Date: Sun, 21 Feb 2021 12:04:56 +0200 Subject: [PATCH] Bump the Golang version to 1.16 Bump the Golang version to 1.16 --- Dockerfile | 2 +- go.mod | 2 +- hack/gofmt.sh | 2 +- hack/govet.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4effe92..84bf76f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.13 as builder +FROM golang:1.16 as builder WORKDIR /workspace # Copy the Go Modules manifests diff --git a/go.mod b/go.mod index feb44d4..51eab0e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/metal3-io/hardware-classification-controller -go 1.14 +go 1.16 require ( github.com/go-logr/logr v0.2.1 diff --git a/hack/gofmt.sh b/hack/gofmt.sh index ce74026..353ed4b 100755 --- a/hack/gofmt.sh +++ b/hack/gofmt.sh @@ -19,6 +19,6 @@ else --volume "${PWD}:/workdir:rw,z" \ --entrypoint sh \ --workdir /workdir \ - registry.hub.docker.com/library/golang:1.15.3 \ + registry.hub.docker.com/library/golang:1.16 \ /workdir/hack/gofmt.sh "${@}" fi; diff --git a/hack/govet.sh b/hack/govet.sh index dc94b72..c412bda 100755 --- a/hack/govet.sh +++ b/hack/govet.sh @@ -15,6 +15,6 @@ else --volume "${PWD}:/go/src/github.com/metal3-io/hardware-classification-controller:ro,z" \ --entrypoint sh \ --workdir /go/src/github.com/metal3-io/hardware-classification-controller \ - registry.hub.docker.com/library/golang:1.15.3 \ + registry.hub.docker.com/library/golang:1.16 \ /go/src/github.com/metal3-io/hardware-classification-controller/hack/govet.sh "${@}" fi;