Bump golang to 1.20.0 (#6070)

Signed-off-by: Ayato Tokubi <atokubi@redhat.com>
This commit is contained in:
Ayato Tokubi 2023-05-04 09:47:18 +01:00 committed by GitHub
parent efd9bd4c1b
commit 83e94a91b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 11 additions and 11 deletions

View file

@ -11,7 +11,7 @@ jobs:
- name: Install Go - name: Install Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with: with:
go-version: '1.19.0' go-version: '1.20.0'
id: go id: go
- name: Check out code - name: Check out code

View file

@ -11,7 +11,7 @@ jobs:
- name: Install Go - name: Install Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with: with:
go-version: '1.19.0' go-version: '1.20.0'
id: go id: go
- name: Check out code - name: Check out code
@ -33,7 +33,7 @@ jobs:
- name: Install Go - name: Install Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with: with:
go-version: '1.19.0' go-version: '1.20.0'
id: go id: go
- name: Check out code - name: Check out code
@ -52,7 +52,7 @@ jobs:
- name: Install Go - name: Install Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with: with:
go-version: '1.19.0' go-version: '1.20.0'
id: go id: go
- name: Check out code - name: Check out code

View file

@ -8,9 +8,9 @@ jobs:
steps: steps:
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 - uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with: with:
go-version: '1.19.0' go-version: '1.20.0'
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v3.4.0 uses: golangci/golangci-lint-action@v3.4.0
with: with:
version: v1.49.0 version: v1.52.2

View file

@ -18,7 +18,7 @@ jobs:
- name: Setup Go - name: Setup Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with: with:
go-version: '1.19.0' go-version: '1.20.0'
- name: Update Docs - name: Update Docs
run: | run: |

View file

@ -53,7 +53,7 @@ out-of-tree plugins.
To compile CoreDNS, we assume you have a working Go setup. See various tutorials if you dont have To compile CoreDNS, we assume you have a working Go setup. See various tutorials if you dont have
that already configured. that already configured.
First, make sure your golang version is 1.17 or higher as `go mod` support and other api is needed. First, make sure your golang version is 1.20 or higher as `go mod` support and other api is needed.
See [here](https://github.com/golang/go/wiki/Modules) for `go mod` details. See [here](https://github.com/golang/go/wiki/Modules) for `go mod` details.
Then, check out the project and run `make` to compile the binary: Then, check out the project and run `make` to compile the binary:
@ -71,7 +71,7 @@ CoreDNS requires Go to compile. However, if you already have docker installed an
setup a Go environment, you could build CoreDNS easily: setup a Go environment, you could build CoreDNS easily:
``` ```
$ docker run --rm -i -t -v $PWD:/v -w /v golang:1.18 make $ docker run --rm -i -t -v $PWD:/v -w /v golang:1.20 make
``` ```
The above command alone will have `coredns` binary generated. The above command alone will have `coredns` binary generated.

2
go.mod
View file

@ -1,6 +1,6 @@
module github.com/coredns/coredns module github.com/coredns/coredns
go 1.18 go 1.20
require ( require (
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible github.com/Azure/azure-sdk-for-go v68.0.0+incompatible

View file

@ -28,4 +28,4 @@ func (a Auto) Notify() error {
} }
} }
return err return err
} }