Skip to content

Commit 313001e

Browse files
committed
Update go and fix linter
Signed-off-by: Tomas Pizarro Moreno <[email protected]>
1 parent dd91a4d commit 313001e

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Set Golang
3030
uses: actions/setup-go@v4
3131
with:
32-
go-version: 1.23.7
32+
go-version: 1.24.2
3333

3434
- name: Set Golangci-lint
3535
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.64.7

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Set Golang
3636
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
3737
with:
38-
go-version: 1.23.7
38+
go-version: 1.24.2
3939

4040
- name: Build
4141
run: make build

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module github.com/vmware-labs/distribution-tooling-for-helm
22

3-
go 1.23.0
4-
toolchain go1.24.1
3+
go 1.24.2
54

65
require (
76
github.com/DataDog/go-tuf v1.0.2-0.5.2

internal/testutil/oci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func CreateOCILayout(ctx context.Context, srcDir, destDir string) error {
174174
packOpts.Layers = descs
175175

176176
pack := func() (ocispec.Descriptor, error) {
177-
root, err := oras.PackManifest(ctx, store, oras.PackManifestVersion1_1_RC4, oras.MediaTypeUnknownArtifact, packOpts)
177+
root, err := oras.PackManifest(ctx, store, oras.PackManifestVersion1_1, oras.MediaTypeUnknownArtifact, packOpts)
178178
if err != nil {
179179
return ocispec.Descriptor{}, err
180180
}

pkg/log/logrus/section_logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (l *SectionLogger) Successf(format string, args ...interface{}) {
3535

3636
// Section executes the provided function inside a new section
3737
func (l *SectionLogger) Section(title string, fn func(log.SectionLogger) error) error {
38-
l.Infof(title)
38+
l.Info(title)
3939
return fn(l)
4040
}
4141

pkg/log/pterm/section_logger.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ func (l *SectionLogger) Section(title string, fn func(log.SectionLogger) error)
6666

6767
// StartSection starts a new log section, with nested indentation
6868
func (l *SectionLogger) StartSection(str string) log.SectionLogger {
69-
l.printMessage(log.AlwaysLevel, Fold, str)
69+
l.printMessage(log.AlwaysLevel, Fold, "%s", str)
7070
return l.nest()
7171
}
72+
7273
func (l *SectionLogger) nest() log.SectionLogger {
7374
newLog := &SectionLogger{nestLevel: l.nestLevel + 1, Logger: NewLogger()}
7475
newLog.prefix = strings.Repeat(" ", newLog.nestLevel*nestSpacing)

0 commit comments

Comments
 (0)