Skip to content

Commit caf82dd

Browse files
Merge pull request #770 from carvel-dev/bump-go
Bump go
2 parents 4f94967 + 8c041ca commit caf82dd

10 files changed

Lines changed: 23 additions & 20 deletions

File tree

.github/workflows/gh-test-external-reg-ghcr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
environment: GHCR e2e
3636
steps:
3737
- name: Check out code
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #6
3939

4040
- name: Set up Go
41-
uses: actions/setup-go@v5
41+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c #6
4242
with:
4343
go-version-file: go.mod
4444
- name: Debug token existence

.github/workflows/gh-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check out code into the Go module directory
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #6
1616
- name: Set up Go 1.x
17-
uses: actions/setup-go@v5
17+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c #6
1818
with:
1919
go-version-file: go.mod
2020
- name: Run Tests
@@ -29,9 +29,9 @@ jobs:
2929
runs-on: windows-latest
3030
steps:
3131
- name: Check out code into the Go module directory
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #6
3333
- name: Set up Go 1.x
34-
uses: actions/setup-go@v5
34+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c #6
3535
with:
3636
go-version-file: go.mod
3737
- name: Install dependencies

.github/workflows/golangci-lint.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ jobs:
1212
name: lint
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1616
with:
1717
fetch-depth: '0'
18+
persist-credentials: false
1819
- name: Set up Go 1.x
19-
uses: actions/setup-go@v5
20+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
2021
with:
2122
go-version-file: go.mod
2223
- name: golangci-lint
23-
uses: golangci/golangci-lint-action@v7
24+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9
2425
with:
25-
version: v2.4
26+
version: v2.12
2627
args: -v

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
id-token: write
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #6
1717
with:
1818
fetch-depth: 0
1919
- name: Set up Go 1.x
20-
uses: actions/setup-go@v5
20+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c #6
2121
with:
2222
go-version-file: go.mod
2323
- name: Set up Cosign

.github/workflows/update-go.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@ on:
88
jobs:
99
update-go:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
1113
steps:
1214
- name: Checkout
13-
uses: actions/checkout@v4
15+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #6
1416
with:
1517
fetch-depth: 0
1618
- name: Set up Go 1.x
17-
uses: actions/setup-go@v5
19+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c #6
1820
with:
1921
go-version: 'stable'
2022
check-latest: true
2123
- name: Update Go
2224
run: go get go
2325
- name: Create Pull Request
24-
uses: peter-evans/create-pull-request@v6
26+
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
2527
with:
2628
token: ${{ secrets.CARVEL_BOT_ACCESS_TOKEN }}
2729
committer: Carvel Bot <svc.bot.carvel@vmware.com>

.github/workflows/windows-registry-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
packages: write
1616
steps:
1717
- name: Check out code into the Go module directory
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #6
1919
- name: Log in to the Container registry
2020
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
2121
with:

go.mod

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

3-
go 1.25.7
3+
go 1.26.3
44

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

pkg/imgpkg/cmd/describe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func (p bundleYAMLPrinter) Print(description v1.Description) error {
213213
}
214214

215215
p.logger.Logf("sha: %s\n", bundleRef.Identifier())
216-
p.logger.Logf(string(yamlDesc))
216+
p.logger.Logf("%s", string(yamlDesc))
217217

218218
return nil
219219
}

pkg/imgpkg/internal/util/prefixed_logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (p PrefixedLogger) Logf(msg string, args ...interface{}) {
4646
p.writerLock.Lock()
4747
defer p.writerLock.Unlock()
4848

49-
p.parent.Logf(string(newData))
49+
p.parent.Logf("%s", string(newData))
5050
}
5151

5252
// UIPrefixWriter prints a prefix when the underlying ui prints a message

pkg/imgpkg/internal/util/progress_logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,6 @@ func (l *ProgressBarNoTTYLogger) End() {
114114
l.cancelFunc()
115115
}
116116
if l.logger != nil && l.finalMessage != "" {
117-
l.logger.Logf(l.finalMessage)
117+
l.logger.Logf("%s", l.finalMessage)
118118
}
119119
}

0 commit comments

Comments
 (0)