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

Cuelang version error with go installer #3786

Open
arthurus-rex opened this issue Jul 19, 2024 · 1 comment
Open

Cuelang version error with go installer #3786

arthurus-rex opened this issue Jul 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@arthurus-rex
Copy link

Description

I was attempting to install cosign locally on my Fedora 40 macine using the command:
go install github.com/sigstore/cosign/v2/cmd/cosign@latest

And received the following error:

pkg/mod/github.com/sigstore/cosign/[email protected]/pkg/cosign/cue/cue.go:19:2: reading cuelang.org/go/go.mod at revision v0.8.1: unknown revision v0.8.1
pkg/mod/github.com/sigstore/cosign/[email protected]/pkg/cosign/cue/cue.go:20:2: reading cuelang.org/go/go.mod at revision v0.8.1: unknown revision v0.8.1
pkg/mod/github.com/sigstore/cosign/[email protected]/pkg/cosign/cue/cue.go:21:2: reading cuelang.org/go/go.mod at revision v0.8.1: unknown revision v0.8.1

At the following step:
go: downloading cuelang.org/go v0.8.1

Notable information is that go.mod appears to specify cuelang v0.9.2, so it is unclear why the go installer is attempting to download an older version of cuelang. The rpm binary installation from the official docs was successful.

Version
OS: Fedora 40
Go: 1.22.5

@arthurus-rex arthurus-rex added the bug Something isn't working label Jul 19, 2024
@arthurus-rex
Copy link
Author

Tried this again a few days ago, and the issue appears to be resolved. This may have been due to a versioning conflict between 'latest' and the in-progress version that was in development at the time. One way to prevent these conflicts in the future would be to periodically update the official docs above to not use the 'latest' tag on the Go installer. Is this something the community may be interested in adding to the docs?

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

1 participant