Bump golang to 1.19 and min allowed version to 1.18
commitb3df9aecc2719cdacfe99c96e19431944ce34cd8
authorAdrian Aneci <aneci@adobe.com>
dateFri 21 Oct 2022, 20:40 (4 years ago)
parent19bb0d0
.github/workflows/ci.yaml+2−2
@@ -20,10 +20,10 @@ jobs:
2020 - name: Check out code
2121 uses: actions/checkout@v2
2222
23− - name: Set up Go 1.18
23+ - name: Set up Go 1.19
2424 uses: actions/setup-go@v2
2525 with:
26− go-version: 1.18.x
26+ go-version: 1.19.x
2727 id: go
2828
2929 - name: Get dependencies
Dockerfile+1−1
@@ -5,7 +5,7 @@ ARG RUNTIME_IMAGE=alpine:3.16
55# cache sharing of the go mod download step.
66# Go cross compilation is also faster than emulation the go compilation across
77# multiple platforms.
8−FROM --platform=${BUILDPLATFORM} golang:1.18-buster AS builder
8+FROM --platform=${BUILDPLATFORM} golang:1.19-buster AS builder
99
1010# Copy sources
1111WORKDIR $GOPATH/src/github.com/oauth2-proxy/oauth2-proxy
Makefile+1−1
@@ -10,7 +10,7 @@ REGISTRY ?= quay.io/oauth2-proxy
1010GO_MAJOR_VERSION = $(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f1)
1111GO_MINOR_VERSION = $(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2)
1212MINIMUM_SUPPORTED_GO_MAJOR_VERSION = 1
13−MINIMUM_SUPPORTED_GO_MINOR_VERSION = 15
13+MINIMUM_SUPPORTED_GO_MINOR_VERSION = 18
1414GO_VERSION_VALIDATION_ERR_MSG = Golang version is not supported, please update to at least $(MINIMUM_SUPPORTED_GO_MAJOR_VERSION).$(MINIMUM_SUPPORTED_GO_MINOR_VERSION)
1515
1616ifeq ($(COVER),true)