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

Having an issue installing using instructions #575

Closed
dopey opened this issue Aug 26, 2021 · 3 comments
Closed

Having an issue installing using instructions #575

dopey opened this issue Aug 26, 2021 · 3 comments

Comments

@dopey
Copy link

dopey commented Aug 26, 2021

Description

$> go install github.com/sigstore/cosign/cmd/cosign@latest
go: downloading github.com/sigstore/cosign v1.1.0
go install github.com/sigstore/cosign/cmd/cosign@latest: github.com/sigstore/[email protected]
	The go.mod file for the module providing named packages contains one or
	more replace directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.

Something wrong with my environment?

macOS 11.5.2
go version go1.16.6 darwin/amd64

@lukehinds
Copy link
Member

I get stuff like this often with go install.

You could try go clean -modcache or go mod tidy first.

@dopey
Copy link
Author

dopey commented Aug 26, 2021

Thanks! Was able to get it working with go get github.com/sigstore/cosign/cmd/cosign@latest.

Using go clean -modcache or go mod tidy didn't work in my case.

@dopey dopey closed this as completed Aug 26, 2021
@dekkagaijin
Copy link
Member

Seems likely that the introduction of multiple require directives in go.mod that were introduced in 1.17 is at fault

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants