1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00

Use golang 1.17

Signed-off-by: Christoph Stäbler <cstabler@redhat.com>
This commit is contained in:
Christoph Stäbler
2022-04-12 17:04:42 +02:00
parent 21cd5218bb
commit 2c09bc5276
8 changed files with 8 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ We follow a hard flattening approach; i.e. direct and inherited dependencies are
Dependencies are managed with [Go Modules](https://github.com/golang/go/wiki/Modules) but committed directly to the repository.
We require at least Go 1.16.
We require at least Go 1.17.
- Add or update a dependency with `go get <dependency>@<version>`.
- If you want to use a fork of a project or ensure that a dependency is not updated even when another dependency requires a newer version of it, manually add a [replace directive in the go.mod file](https://github.com/golang/go/wiki/Modules#when-should-i-use-the-replace-directive).

View File

@@ -9,6 +9,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/openshift/origin-release:golang-1.16 \
docker.io/golang:1.17 \
./hack/go-fmt.sh "${@}"
fi

View File

@@ -9,6 +9,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/openshift/origin-release:golang-1.16 \
docker.io/golang:1.17 \
./hack/go-genmock.sh "${@}"
fi

View File

@@ -8,6 +8,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/openshift/origin-release:golang-1.16 \
docker.io/golang:1.17 \
./hack/go-lint.sh "${@}"
fi

View File

@@ -12,6 +12,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/openshift/origin-release:golang-1.16 \
docker.io/golang:1.17 \
./hack/go-sec.sh "${@}"
fi

View File

@@ -8,6 +8,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/openshift/origin-release:golang-1.16 \
docker.io/golang:1.17 \
./hack/go-test.sh "${@}"
fi

View File

@@ -6,6 +6,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/openshift/origin-release:golang-1.16 \
docker.io/golang:1.17 \
./hack/go-vet.sh "${@}"
fi;

View File

@@ -1,7 +1,7 @@
# This Dockerfile is used by CI to publish the installer image.
# It builds an image containing only the openshift-install.
FROM registry.ci.openshift.org/ocp/builder:rhel-7-golang-1.16-openshift-4.10 AS builder
FROM registry.ci.openshift.org/ocp/builder:rhel-7-golang-1.17-openshift-4.10 AS builder
ARG TAGS=""
WORKDIR /go/src/github.com/openshift/installer
COPY . .