Skip to content

Commit

Permalink
chore: update Go to 1.22 (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke authored Apr 20, 2024
1 parent d95c38a commit 8b22222
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/aquaproj/registry-tool

go 1.21
go 1.22

toolchain go1.22.1

Expand Down
2 changes: 0 additions & 2 deletions pkg/create-pr-new-pkg/api_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ func Test_getDesc(t *testing.T) {
},
}
for _, d := range data {
d := d
t.Run(d.name, func(t *testing.T) {
t.Parallel()
desc, err := getDesc(strings.NewReader(d.yaml))
Expand Down Expand Up @@ -79,7 +78,6 @@ func Test_getBody(t *testing.T) {
},
}
for _, d := range data {
d := d
t.Run(d.name, func(t *testing.T) {
t.Parallel()
body := getBody(d.pkgName, d.desc)
Expand Down
4 changes: 2 additions & 2 deletions pkg/patchchecksum/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func PatchChecksum(ctx context.Context, logE *logrus.Entry, configFilePath strin
}

idx := 0
for i := 0; i < size; i++ {
for i := range size {
pkgInfo := cfg.PackageInfos[i]
node, j := FindFirstMappingNode(pkgsAST, idx)
if j == -1 {
Expand Down Expand Up @@ -149,7 +149,7 @@ func listReleaseAssets(ctx context.Context, logE *logrus.Entry, ghClient GitHubC
PerPage: 100, //nolint:gomnd
}
var arr []*github.ReleaseAsset
for i := 0; i < 10; i++ {
for range 10 {
assets, _, err := ghClient.ListReleaseAssets(ctx, pkgInfo.RepoOwner, pkgInfo.RepoName, releaseID, opts)
if err != nil {
logE.WithFields(logrus.Fields{
Expand Down

0 comments on commit 8b22222

Please sign in to comment.