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 v1.8.0 installation failure: module ... contains one or more exclude directives... #1844

Closed
nealmcb opened this issue May 5, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@nealmcb
Copy link
Contributor

nealmcb commented May 5, 2022

Description

When I follow the installation instructions at https://docs.sigstore.dev/cosign/installation I get an error:

$ go install github.com/sigstore/cosign/cmd/cosign@latest
go: downloading github.com/sigstore/cosign v1.8.0
go: github.com/sigstore/cosign/cmd/cosign@latest (in github.com/sigstore/cosign@v1.8.0):
        The go.mod file for the module providing named packages contains one or
        more exclude directives. It must not contain directives that would cause
        it to be interpreted differently than if it were the main module.

$ go version
go version go1.18.1 linux/amd64

This seems related to #588, but the error is about "exclude" directives, not "replace" directives.

I'm doing this on Ubuntu 20.04, with Go1.18.1

@nealmcb nealmcb added the bug Something isn't working label May 5, 2022
@dlorenc
Copy link
Member

dlorenc commented May 5, 2022

We should probably drop the go install instructions, they're too easy to break with replace and exclude directives :(

@dlorenc
Copy link
Member

dlorenc commented May 5, 2022

Cc @cpanato

@nealmcb
Copy link
Contributor Author

nealmcb commented May 5, 2022

Related question: what installation method do you recommend for keeping the package automatically up-to-date with security fixes etc. on Ubuntu? I'm unfamiliar with linuxbrew. I don't see a snap or flatpack or ppa available - are any of those options planned?

Many thanks.

@nealmcb
Copy link
Contributor Author

nealmcb commented May 5, 2022

One more point: the section on installing via deb/rpm/binary has an extra quote in the final line for deb installation.
It could also be more explicit about needing to look up the latest version of the package....
And if that is done it would help to split it out into separate code sections so that clicking on the little copy icon for the appropriate method actually made sense.

@nealmcb
Copy link
Contributor Author

nealmcb commented May 5, 2022

I got the same "exclude directives" issue on sget with this command from the main README:
go install github.com/sigstore/cosign/cmd/sget@latest

I look forward to the day when you offer sget options for installing the rest of cosign.... Ahh, those chickens and eggs....

@nealmcb
Copy link
Contributor Author

nealmcb commented May 6, 2022

Ahh - now I see #1364 - might make sense to at least note the unclear status of sget in the README now.

@haydentherapper
Copy link
Contributor

Out of date, instructions should be working now.

@haydentherapper haydentherapper closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2024
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