Does not build currently because of go.mod entries #5323
Replies: 2 comments 2 replies
-
It looks like the forward compatibility introduced in Go 1.21 is relevant.
We've merged this PR, and rekor declares Then, we cannot compile the main branch with Go 1.21 because the We need to stay in Go 1.20 for some reason. It can be fixed with
|
Beta Was this translation helpful? Give feedback.
-
The https://aur.archlinux.org/packages/trivy-git package cannot use go 1.20, as Arch Linux does not offer go 1.20, I will disable nightly build now, and enable it later when it can get built against 1.21 . |
Beta Was this translation helpful? Give feedback.
-
Description
Currently building with
-mod=readonly
so thatgo.mod
entries does not get changed, fails with this error:go: updates to go.mod needed, disabled by -mod=readonly; to update it:
Link
https://github.com/aminvakil/aur/actions/runs/6387591584/job/17352378751#step:11:444
Suggestions
I used
go mod tidy
and many lines got changed, but as I used go 1.21 I'm not sure if those entries work with go 1.20 as well or not, otherwise I would just whip up a PR with changes.Beta Was this translation helpful? Give feedback.
All reactions