Skip to content

Commit d3976cb

Browse files
committed
go.mod: Bumped to Go 1.21
Signed-off-by: Micah Hausler <[email protected]>
1 parent d58b3f3 commit d3976cb

File tree

6 files changed

+15
-12
lines changed

6 files changed

+15
-12
lines changed

.github/workflows/ci-build-test.yaml

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

2020
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
2121
with:
22-
go-version: '1.19'
22+
go-version: "1.21"
2323
check-latest: true
2424
cache: true
2525

@@ -35,7 +35,7 @@ jobs:
3535

3636
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
3737
with:
38-
go-version: '1.19'
38+
go-version: "1.21"
3939
check-latest: true
4040
cache: true
4141

.github/workflows/verify.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
1717
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
1818
with:
19-
go-version: 1.19
19+
go-version: 1.21
2020
check-latest: true
2121
cache: true
2222

2323
- name: golangci-lint
2424
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
2525
with:
26-
version: v1.50.1
26+
version: v1.54
2727
args: --timeout=5m

go.mod

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

3-
go 1.19
3+
go 1.21
44

55
require (
66
github.com/google/go-cmp v0.5.9

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
22
github.com/codahale/rfc6979 v0.0.0-20141003034818-6a90f24967eb h1:EDmT6Q9Zs+SbUoc7Ik9EfrFqcylYqgPZ9ANSbTAntnE=
3+
github.com/codahale/rfc6979 v0.0.0-20141003034818-6a90f24967eb/go.mod h1:ZjrT6AXHbDs86ZSdt/osfBi5qfexBrKUdONk989Wnk4=
34
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
45
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
56
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
@@ -52,6 +53,7 @@ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBc
5253
golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=
5354
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
5455
golang.org/x/term v0.7.0 h1:BEvjmm5fURWqcfbSKTdpkDXYBrUS1c0m8agp14W48vQ=
56+
golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY=
5557
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
5658
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
5759
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=

pkg/vex/functions_documents_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,28 @@ func TestMergeDocumentsWithOptions(t *testing.T) {
2323
require.NoError(t, err)
2424

2525
for _, tc := range []struct {
26-
opts MergeOptions
26+
opts *MergeOptions
2727
docs []*VEX
2828
expectedDoc *VEX
2929
shouldErr bool
3030
}{
3131
// Zero docs should fail
3232
{
33-
opts: MergeOptions{},
33+
opts: &MergeOptions{},
3434
docs: []*VEX{},
3535
expectedDoc: &VEX{},
3636
shouldErr: true,
3737
},
3838
// One doc results in the same doc
3939
{
40-
opts: MergeOptions{},
40+
opts: &MergeOptions{},
4141
docs: []*VEX{doc1},
4242
expectedDoc: doc1,
4343
shouldErr: false,
4444
},
4545
// Two docs, as they are
4646
{
47-
opts: MergeOptions{},
47+
opts: &MergeOptions{},
4848
docs: []*VEX{doc1, doc2},
4949
expectedDoc: &VEX{
5050
Metadata: Metadata{},
@@ -57,7 +57,7 @@ func TestMergeDocumentsWithOptions(t *testing.T) {
5757
},
5858
// Two docs, filter product
5959
{
60-
opts: MergeOptions{
60+
opts: &MergeOptions{
6161
Products: []string{"pkg:apk/wolfi/[email protected]"},
6262
},
6363
docs: []*VEX{doc3, doc4},
@@ -71,7 +71,7 @@ func TestMergeDocumentsWithOptions(t *testing.T) {
7171
},
7272
// Two docs, filter vulnerability
7373
{
74-
opts: MergeOptions{
74+
opts: &MergeOptions{
7575
Vulnerabilities: []string{"CVE-9876-54321"},
7676
},
7777
docs: []*VEX{doc3, doc4},
@@ -84,7 +84,7 @@ func TestMergeDocumentsWithOptions(t *testing.T) {
8484
shouldErr: false,
8585
},
8686
} {
87-
doc, err := MergeDocumentsWithOptions(&tc.opts, tc.docs)
87+
doc, err := MergeDocumentsWithOptions(tc.opts, tc.docs)
8888
if tc.shouldErr {
8989
require.Error(t, err)
9090
continue

pkg/vex/vex_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ func genTestDoc(t *testing.T) VEX {
166166
}
167167

168168
func TestCanonicalHash(t *testing.T) {
169+
//nolint:gosec // Not a credential
169170
goldenHash := `3edda795cc8f075902800f0bb6a24f89b49e7e45fbceea96ce6061097460f139`
170171

171172
otherTS, err := time.Parse(time.RFC3339, "2019-01-22T16:36:43-05:00")

0 commit comments

Comments
 (0)