Skip to content

Commit

Permalink
Upgrade golang to 1.18 (open-cluster-management-io#74)
Browse files Browse the repository at this point in the history
Signed-off-by: Jian Qiu <jqiu@redhat.com>
  • Loading branch information
qiujian16 authored May 25, 2022
1 parent d63d00d commit bf410fc
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 230 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-postsubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
# Common versions
GO_VERSION: '1.17'
GO_VERSION: '1.18'
GO_REQUIRED_MIN_VERSION: ''
GOPATH: '/home/runner/work/placement/placement/go'
defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
# Common versions
GO_VERSION: '1.17'
GO_VERSION: '1.18'
GO_REQUIRED_MIN_VERSION: ''
GOPATH: '/home/runner/work/placement/placement/go'
defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'v*.*.*'
env:
# Common versions
GO_VERSION: '1.17'
GO_VERSION: '1.18'
GO_REQUIRED_MIN_VERSION: ''
GOPATH: '/home/runner/work/placement/placement/go'
GITHUB_REF: ${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.17 AS builder
FROM golang:1.18 AS builder
WORKDIR /go/src/open-cluster-management.io/placement
COPY . .
ENV GO_PACKAGE open-cluster-management.io/placement
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 open-cluster-management.io/placement

go 1.17
go 1.18

replace k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 //keep compatibility, can remove this after upgrading to k8s.io/apiserver v0.24.0

Expand Down
Loading

0 comments on commit bf410fc

Please sign in to comment.