Skip to content

Commit 35007e0

Browse files
authored
Merge pull request #127 from tri-adam/go-1.25
chore: bump module to Go 1.24
2 parents 2ec5c76 + 00e4395 commit 35007e0

File tree

8 files changed

+20
-22
lines changed

8 files changed

+20
-22
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
go-version: ['~1.23.0', '~1.24.0']
14+
go-version: ['~1.24.0', '~1.25.0']
1515

1616
steps:
1717
- uses: actions/checkout@v5

.github/workflows/check.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v5
1616
- uses: actions/setup-go@v5
1717
with:
18-
go-version: '~1.24.0'
18+
go-version: '~1.25.0'
1919
- run: go mod tidy -diff
2020

2121
check-test-corpus:
@@ -26,7 +26,7 @@ jobs:
2626
- uses: actions/checkout@v5
2727
- uses: actions/setup-go@v5
2828
with:
29-
go-version: '~1.24.0'
29+
go-version: '~1.25.0'
3030
- run: sudo apt-get install -qy squashfs-tools-ng
3131
- run: go run ./test/images/gen_images.go ./test/images
3232
- run: git diff --exit-code --
@@ -39,7 +39,7 @@ jobs:
3939
- uses: actions/checkout@v5
4040
- uses: actions/setup-go@v5
4141
with:
42-
go-version: '~1.24.0'
42+
go-version: '~1.25.0'
4343
- uses: goreleaser/goreleaser-action@v6
4444
with:
4545
args: check

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
fetch-depth: 0
2121
- uses: actions/setup-go@v5
2222
with:
23-
go-version: '~1.24.0'
23+
go-version: '~1.25.0'
2424
- uses: goreleaser/goreleaser-action@v6
2525
with:
2626
args: release

.github/workflows/style.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v5
2323
- uses: actions/setup-go@v5
2424
with:
25-
go-version: '~1.24.0'
25+
go-version: '~1.25.0'
2626
- uses: golangci/golangci-lint-action@v8
2727
with:
2828
version: v2.2

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
go-version: ['~1.23.0', '~1.24.0']
16+
go-version: ['~1.24.0', '~1.25.0']
1717

1818
steps:
1919
- uses: actions/checkout@v5
@@ -31,7 +31,7 @@ jobs:
3131
- uses: actions/checkout@v5
3232
- uses: actions/setup-go@v5
3333
with:
34-
go-version: '~1.24.0'
34+
go-version: '~1.25.0'
3535
- uses: goreleaser/goreleaser-action@v6
3636
with:
3737
args: release --snapshot --skip=publish

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/sylabs/oci-tools
22

3-
go 1.23.4
3+
go 1.24.0
44

55
require (
66
github.com/containerd/platforms v0.2.1

pkg/sourcesink/cosign_sif_test.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package sourcesink
66

77
import (
8-
"context"
98
"testing"
109

1110
cosignoci "github.com/sigstore/cosign/v2/pkg/oci"
@@ -43,7 +42,7 @@ func Test_sifDescriptor_CosignImages(t *testing.T) {
4342
if err != nil {
4443
t.Fatal(err)
4544
}
46-
d, err := s.Get(context.Background())
45+
d, err := s.Get(t.Context())
4746
if err != nil {
4847
t.Fatal(err)
4948
}
@@ -53,7 +52,7 @@ func Test_sifDescriptor_CosignImages(t *testing.T) {
5352
t.Fatal("could not upgrade Descriptor to SignedDescriptor")
5453
}
5554

56-
got, err := sd.CosignImages(context.Background(), tt.recursive)
55+
got, err := sd.CosignImages(t.Context(), tt.recursive)
5756
if err != nil {
5857
t.Fatal(err)
5958
}
@@ -93,7 +92,7 @@ func Test_sifDescriptor_SignedImage(t *testing.T) {
9392
if err != nil {
9493
t.Fatal(err)
9594
}
96-
d, err := s.Get(context.Background())
95+
d, err := s.Get(t.Context())
9796
if err != nil {
9897
t.Fatal(err)
9998
}
@@ -103,7 +102,7 @@ func Test_sifDescriptor_SignedImage(t *testing.T) {
103102
t.Fatal("could not upgrade Descriptor to SignedDescriptor")
104103
}
105104

106-
si, err := sd.SignedImage(context.Background())
105+
si, err := sd.SignedImage(t.Context())
107106
if err != nil {
108107
t.Fatal(err)
109108
}
@@ -167,7 +166,7 @@ func Test_sifDescriptor_SignedImageIndex(t *testing.T) {
167166
if err != nil {
168167
t.Fatal(err)
169168
}
170-
d, err := s.Get(context.Background())
169+
d, err := s.Get(t.Context())
171170
if err != nil {
172171
t.Fatal(err)
173172
}
@@ -177,7 +176,7 @@ func Test_sifDescriptor_SignedImageIndex(t *testing.T) {
177176
t.Fatal("could not upgrade Descriptor to SignedDescriptor")
178177
}
179178

180-
sii, err := sd.SignedImageIndex(context.Background())
179+
sii, err := sd.SignedImageIndex(t.Context())
181180
if err != nil {
182181
t.Fatal(err)
183182
}

pkg/sourcesink/sif_test.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package sourcesink
66

77
import (
8-
"context"
98
"errors"
109
"io"
1110
"log/slog"
@@ -128,7 +127,7 @@ func TestSIFGet(t *testing.T) {
128127
if err != nil {
129128
t.Fatalf("SIFFromPath() error = %v", err)
130129
}
131-
d, err := s.Get(context.Background(), tt.opts...)
130+
d, err := s.Get(t.Context(), tt.opts...)
132131
if !errors.Is(err, tt.wantErr) {
133132
t.Fatalf("Get() error = %v, wantErr %v", err, tt.wantErr)
134133
}
@@ -170,7 +169,7 @@ func TestSIFDescriptorImage(t *testing.T) {
170169
if err != nil {
171170
t.Fatalf("SIFFromPath() error = %v", err)
172171
}
173-
d, err := s.Get(context.Background())
172+
d, err := s.Get(t.Context())
174173
if err != nil {
175174
t.Fatalf(".Get() error = %v", err)
176175
}
@@ -210,7 +209,7 @@ func TestSIFDescriptorImageIndex(t *testing.T) {
210209
if err != nil {
211210
t.Fatalf("SIFFromPath() error = %v", err)
212211
}
213-
d, err := s.Get(context.Background())
212+
d, err := s.Get(t.Context())
214213
if err != nil {
215214
t.Fatalf(".Get() error = %v", err)
216215
}
@@ -289,7 +288,7 @@ func TestSIFWrite(t *testing.T) {
289288
if err != nil {
290289
t.Fatalf("SIFEmpty() error = %v", err)
291290
}
292-
err = s.Write(context.Background(), tt.write, tt.opts...)
291+
err = s.Write(t.Context(), tt.write, tt.opts...)
293292
if err != nil {
294293
t.Fatalf(".Write() error = %v", err)
295294
}
@@ -356,7 +355,7 @@ func TestSIFBlob(t *testing.T) {
356355
if err != nil {
357356
t.Fatalf("OCIFromPath() error = %v", err)
358357
}
359-
rc, err := s.Blob(context.Background(), tt.opts...)
358+
rc, err := s.Blob(t.Context(), tt.opts...)
360359
if !errors.Is(err, tt.wantErr) {
361360
t.Fatalf("Get() error = %v, wantErr %v", err, tt.wantErr)
362361
}

0 commit comments

Comments
 (0)