mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
Bump golang to 1.20.0 (#6070)
Signed-off-by: Ayato Tokubi <atokubi@redhat.com>
This commit is contained in:
2
.github/workflows/go.coverage.yml
vendored
2
.github/workflows/go.coverage.yml
vendored
@@ -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
|
||||||
|
|||||||
6
.github/workflows/go.test.yml
vendored
6
.github/workflows/go.test.yml
vendored
@@ -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
|
||||||
|
|||||||
4
.github/workflows/golangci-lint.yml
vendored
4
.github/workflows/golangci-lint.yml
vendored
@@ -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
|
||||||
|
|||||||
2
.github/workflows/make.doc.yml
vendored
2
.github/workflows/make.doc.yml
vendored
@@ -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: |
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ out-of-tree plugins.
|
|||||||
To compile CoreDNS, we assume you have a working Go setup. See various tutorials if you don’t have
|
To compile CoreDNS, we assume you have a working Go setup. See various tutorials if you don’t 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user