Skip to content

Bump dependencies#1064

Open
kgaughan wants to merge 5 commits into
goss-org:masterfrom
kgaughan:dependencies-take-2
Open

Bump dependencies#1064
kgaughan wants to merge 5 commits into
goss-org:masterfrom
kgaughan:dependencies-take-2

Conversation

@kgaughan

@kgaughan kgaughan commented Jun 8, 2026

Copy link
Copy Markdown
Contributor
Checklist
  • make test-all (UNIX) passes. CI will also test this
  • unit and/or integration tests are included (if applicable)
  • documentation is changed or added (if applicable)

Description of change

As the Go toolchain is being bumped too, some additional changes were needed in the testdata and also to the code to deal with issues flagged during the build. golangci-lint also needs a bump to the most recent v1.* to avoid the following breakage:

$ make
INFO: Starting build fmt
./ci/go-fmt.sh
.../bin/gofmt
valid gofmt
INFO: Starting build lint
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59
../../go/pkg/mod/golang.org/x/tools@v0.22.0/internal/tokeninternal/tokeninternal.go:64:9: invalid array length -delta * delta (constant -256 of type int64)
make: *** [Makefile:40: lint] Error 1

A bump to v2 can come later. golangci-lint v1.64.8 and go v1.25 aren't playing nice together, forcing a bump to v2.12.2. I've included the required changes to make the linter happy too.

Finally, I've bumped the actions for Trivy in trivy-schedule.yaml to fix that pipeline too. Closes #1051.

As the Go toolchain is being bumped too, some additional changes were
needed in the testdata and also to the code to deal with issues flagged
during the build. golangci-lint also needs a bump to the most recent
v1.* to avoid the following breakage:

```
$ make
INFO: Starting build fmt
./ci/go-fmt.sh
.../bin/gofmt
valid gofmt
INFO: Starting build lint
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59
../../go/pkg/mod/golang.org/x/tools@v0.22.0/internal/tokeninternal/tokeninternal.go:64:9: invalid array length -delta * delta (constant -256 of type int64)
make: *** [Makefile:40: lint] Error 1
```

A bump to v2 can come later.
@kgaughan kgaughan requested a review from aelsabbahy as a code owner June 8, 2026 20:15
@kgaughan kgaughan mentioned this pull request Jun 8, 2026
@kgaughan

kgaughan commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

I guess I should note why I bumped the toolchain to 1.25.11: when I got the Trivy scans working, it detected a vulnerability in the Go standard library.

@aelsabbahy aelsabbahy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, small question/feedback since it impacts the user experience.

Matching: negated_basic_reader: matches:
Error
ContainElements matcher expects an array/slice/map. Got:
ContainElements matcher expects an array/slice/map/iter.Seq/iter.Seq2. Got:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm.. this output seems confusing. What's causing that change?

We may have to wrap this error.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's caused by the update of the Go runtime to 1.23+. iter was introduced in Go 1.23.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compromised aquasecurity/trivy-action detected in GitHub Actions workflows

2 participants