Closed mathieu-benoit closed 1 year ago
I'm able to build locally this container image and test it in my Kubernetes cluster, no problem.
Plus, one of the Build / test
check in the CI is green/successful.
Where I NEED HELP is to help me understand and fix the second Build / test
check and the Test / test
check in CI... not sure what I should do. Anyone here to help? Thanks!
For Build / test
:
github.com/rogpeppe/go-internal/fmtsort loaded from github.com/rogpeppe/go-internal@v1.8.0,
but go 1.16 would select v1.8.1
To upgrade to the versions selected by go 1.16:
go mod tidy -go=1.16 && go mod tidy -go=1.17
If reproducibility with go 1.16 is not needed:
go mod tidy -compat=1.17
For Test / test
:
Error: ../../../go/pkg/mod/github.com/theupdateframework/go-tuf@v0.5.2-0.20220930112810-3890c1e7ace4/internal/roles/roles.go:27:20: undefined: strings.Cut
note: module requires Go 1.18
# golang.org/x/exp/constraints
Error: ../../../go/pkg/mod/golang.org/x/exp@v0.0.0-20220823124025-807a23277127/constraints/constraints.go:13:2: syntax error: unexpected ~, expecting method or interface name
Error: ../../../go/pkg/mod/golang.org/x/exp@v0.0.0-20220823124025-807a23277127/constraints/constraints.go:20:2: syntax error: unexpected ~, expecting method or interface name
Error: ../../../go/pkg/mod/golang.org/x/exp@v0.0.0-20220823124025-807a23277127/constraints/constraints.go:27:9: syntax error: unexpected |, expecting semicolon or newline or }
Error: ../../../go/pkg/mod/golang.org/x/exp@v0.0.0-20220823124025-807a23277127/constraints/constraints.go:34:2: syntax error: unexpected ~, expecting method or interface name
Error: ../../../go/pkg/mod/golang.org/x/exp@v0.0.0-20220823124025-807a23277127/constraints/constraints.go:41:2: syntax error: unexpected ~, expecting method or interface name
Error: ../../../go/pkg/mod/golang.org/x/exp@v0.0.0-20220823124025-807a23277127/constraints/constraints.go:49:10: syntax error: unexpected |, expecting semicolon or newline or }
note: module requires Go 1.18
# sigs.k8s.io/release-utils/version
Error: ../../../go/pkg/mod/sigs.k8s.io/release-utils@v0.7.3/version/version.go:122:25: bi.Settings undefined (type *debug.BuildInfo has no field or method Settings)
note: module requires Go 1.18
Error: running "go test ./... -race" failed with exit code 2
Error: The process '/opt/hostedtoolcache/mage-action/1.14.0/x64/mage' failed with exit code 2
Thanks @Dentrax.
I think we should prioritize merging https://github.com/sigstore/cosign-gatekeeper-provider/pull/24 first to make it pass.
I agree with you.
Woot! Woot! All checks have passed
with #24.
I will soon work on the changes requested.
Good news! Looking forward to your changes. I will be sneaking around the merge button.
We should be good to go, thanks for your review @Dentrax!
Signed-off-by: Mathieu Benoit mathieu-benoit@hotmail.fr
Bump
cosign
from v1.3.1 to v1.13.1.Fixing the errors:
I'm still getting this message with my own public signed image:
But that's the same message when I run this command
COSIGN_EXPERIMENTAL=1 cosign verify devopps/alpine:signed
:But at least we are making progress with this PR.