Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cosign targets Go 1.21, but uses 1.22 only dependency github.com/buildkite/agent/v3@v3.65.0 #3608

Closed
cardil opened this issue Mar 19, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@cardil
Copy link

cardil commented Mar 19, 2024

Description

Cosign declares itself to be buildable with Go 1.21:

go 1.21

However, it refers to a dependency github.com/buildkite/agent/v3@v3.65.0, which is Go 1.22 only.

This causes problems for any package that imports Cosign, as you may see build errors, when running on Go 1.21.

My IDE fails with this command:

$ go list -json -m -u -mod=readonly all
go: loading module retractions for github.com/buildkite/agent/v3@v3.62.0: module github.com/buildkite/agent/v3@v3.66.0 requires go >= 1.22 (running go 1.21.4)

You could see the referral with:

$ go mod graph | grep github.com/buildkite/agent/v3
github.com/sigstore/cosign/v2@v2.2.3 github.com/buildkite/agent/v3@v3.62.0

Version

I'm using the latest released package: github.com/sigstore/cosign/v2@v2.2.3

@cardil cardil added the bug Something isn't working label Mar 19, 2024
@cardil
Copy link
Author

cardil commented Mar 19, 2024

Sorry, for the noise. This clearly must be some problem on my side, as cosign clearly declares dependency to github.com/buildkite/agent/v3@v3.62.0, not github.com/buildkite/agent/v3@v3.65.0

github.com/buildkite/agent/v3 v3.62.0

@cardil cardil closed this as completed Mar 19, 2024
@cardil cardil changed the title Cosign targets Go 1.21, but uses 1.22 only dependency github.com/buildkite/agent/v3@v3.62.0 Cosign targets Go 1.21, but uses 1.22 only dependency github.com/buildkite/agent/v3@v3.65.0 Mar 19, 2024
@lmarchione-r7
Copy link

lmarchione-r7 commented Mar 19, 2024

I'm getting the same error. Trying to build cosign 2.2.3 on Go 1.20. Do I need to upgrade to Go 1.21?

12:45:35  /go/pkg/mod/github.com/buildkite/agent/v3@v3.62.0/api/retryable.go:8:2: package slices is not in GOROOT (/usr/local/go/src/slices)

EDIT: Ah, I see this now.

12:45:35  note: imported by a module that requires go 1.21

@haydentherapper
Copy link
Contributor

1.21 is required, but we haven't moved to 1.22 yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants