Upgrade golang to 1.19 (#84)

Signed-off-by: haoqing0110 <qhao@redhat.com>

Signed-off-by: haoqing0110 <qhao@redhat.com>
This commit is contained in:
Qing Hao
2022-10-28 17:23:30 +08:00
committed by GitHub
parent 6a7cbec575
commit a14b5e8dcb
5 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ on:
env:
# Common versions
GO_VERSION: '1.18'
GO_VERSION: '1.19'
GO_REQUIRED_MIN_VERSION: ''
GOPATH: '/home/runner/work/placement/placement/go'
defaults:

View File

@@ -9,7 +9,7 @@ on:
env:
# Common versions
GO_VERSION: '1.18'
GO_VERSION: '1.19'
GO_REQUIRED_MIN_VERSION: ''
GOPATH: '/home/runner/work/placement/placement/go'
defaults:

View File

@@ -6,7 +6,7 @@ on:
- 'v*.*.*'
env:
# Common versions
GO_VERSION: '1.18'
GO_VERSION: '1.19'
GO_REQUIRED_MIN_VERSION: ''
GOPATH: '/home/runner/work/placement/placement/go'
GITHUB_REF: ${{ github.ref }}

View File

@@ -1,4 +1,4 @@
FROM golang:1.18 AS builder
FROM golang:1.19 AS builder
WORKDIR /go/src/open-cluster-management.io/placement
COPY . .
ENV GO_PACKAGE open-cluster-management.io/placement

2
go.mod
View File

@@ -1,6 +1,6 @@
module open-cluster-management.io/placement
go 1.18
go 1.19
replace k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42 // keep compatibility for k8s.io/apiserver v0.24.3