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

go install failing due to go.mod version mismatch? #47

Open
luckman212 opened this issue Mar 21, 2023 · 2 comments
Open

go install failing due to go.mod version mismatch? #47

luckman212 opened this issue Mar 21, 2023 · 2 comments

Comments

@luckman212
Copy link

Is there any other way to install this via go install? (I'm on macOS 13.2.1 + go1.20.2 darwin/arm64)

I found golang/go#35732 which seems to be related, but I'm not clear what needs to be changed to "fix" it.

$ go install github.com/OperatorFoundation/[email protected]
go: github.com/OperatorFoundation/[email protected]: github.com/OperatorFoundation/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/OperatorFoundation/shapeshifter-dispatcher/v3")

$ go install github.com/OperatorFoundation/shapeshifter-dispatcher@latest
go: downloading github.com/OperatorFoundation/shapeshifter-dispatcher v2.1.5+incompatible
go: github.com/OperatorFoundation/shapeshifter-dispatcher@latest: module github.com/OperatorFoundation/shapeshifter-dispatcher@latest found (v2.1.5+incompatible), but does not contain package github.com/OperatorFoundation/shapeshifter-dispatcher
@CryptoSax
Copy link
Collaborator

It seems that there is currently no way to install the project via go install. I recommend using git clone to install the project and then using go install from the project's directory. I just tested this method and it worked fine! Let me know if I can provide any additional info.

@luckman212
Copy link
Author

Yes git clone method works, I was just wondering if I was doing something wrong.

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

2 participants