shapeshifter-dispatcher icon indicating copy to clipboard operation
shapeshifter-dispatcher copied to clipboard

go install failing due to go.mod version mismatch?

Open luckman212 opened this issue 2 years ago • 2 comments

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 https://github.com/golang/go/issues/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

luckman212 avatar Mar 21 '23 13:03 luckman212

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.

CryptoSax avatar Mar 24 '23 21:03 CryptoSax

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

luckman212 avatar Mar 24 '23 23:03 luckman212