Skip to content

Commit 40ecb41

Browse files
Merge pull request #493 from carvel-dev/bump-go-version-1.20
Bump go version to 1.20.1
2 parents 3fb0162 + 8a89458 commit 40ecb41

7 files changed

Lines changed: 10 additions & 14 deletions

File tree

.github/workflows/gh-test-external-registry.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Go 1.x
2727
uses: actions/setup-go@v1
2828
with:
29-
go-version: "1.19.5"
29+
go-version: "1.20.1"
3030
- name: Check out code into the Go module directory
3131
uses: actions/checkout@v2
3232
with:
@@ -63,7 +63,7 @@ jobs:
6363
- name: Set up Go 1.x
6464
uses: actions/setup-go@v1
6565
with:
66-
go-version: "1.19.5"
66+
go-version: "1.20.1"
6767
- name: Check out code into the Go module directory
6868
uses: actions/checkout@v2
6969
with:

.github/workflows/gh-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Go 1.x
1515
uses: actions/setup-go@v1
1616
with:
17-
go-version: "1.19.5"
17+
go-version: "1.20.1"
1818
- name: Check out code into the Go module directory
1919
uses: actions/checkout@v2
2020
with:
@@ -37,7 +37,7 @@ jobs:
3737
- name: Set up Go 1.x
3838
uses: actions/setup-go@v1
3939
with:
40-
go-version: "1.19.5"
40+
go-version: "1.20.1"
4141
- name: Check out code into the Go module directory
4242
uses: actions/checkout@v2
4343
with:

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
- name: Set up Go 1.x
1616
uses: actions/setup-go@v1
1717
with:
18-
go-version: "1.19.5"
18+
go-version: "1.20.1"
1919
- uses: actions/checkout@v2
2020
with:
2121
fetch-depth: '0'
2222
- name: golangci-lint
23-
uses: golangci/golangci-lint-action@v2
23+
uses: golangci/golangci-lint-action@v3
2424
with:
25-
version: v1.45.2
25+
version: v1.51.2
2626
args: -v

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Go
1919
uses: actions/setup-go@v2
2020
with:
21-
go-version: 1.19.5
21+
go-version: 1.20.1
2222
- name: Run GoReleaser
2323
uses: goreleaser/goreleaser-action@5e15885530fb01d81d1f24e8a6f54ebbd0fed7eb
2424
if: startsWith(github.ref, 'refs/tags/')

.github/workflows/trivy-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
with:
1111
repo: carvel-dev/imgpkg
1212
tool: imgpkg
13-
goVersion: 1.19.5
13+
goVersion: 1.20.1
1414
secrets:
1515
githubToken: ${{ secrets.GITHUB_TOKEN }}
1616
slackWebhookURL: ${{ secrets.SLACK_WEBHOOK_URL }}

cmd/imgpkg/imgpkg.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ package main
66
import (
77
"io/ioutil"
88
"log"
9-
"math/rand"
109
"os"
11-
"time"
1210

1311
"github.com/cppforlife/cobrautil"
1412
uierrs "github.com/cppforlife/go-cli-ui/errors"
@@ -17,8 +15,6 @@ import (
1715
)
1816

1917
func main() {
20-
rand.Seed(time.Now().UTC().UnixNano())
21-
2218
log.SetOutput(ioutil.Discard)
2319

2420
// TODO logs

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/vmware-tanzu/carvel-imgpkg
22

3-
go 1.19
3+
go 1.20
44

55
require (
66
github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.0.0-20220517224237-e6f29200ae04

0 commit comments

Comments
 (0)