can't install using go install command
jossef opened this issue · comments
getting this
go install github.com/Checkmarx/2ms@v2.6.0
go: github.com/Checkmarx/2ms@v2.6.0: github.com/Checkmarx/2ms@v2.6.0: invalid version: module contains a go.mod file, so module path must match major version ("github.com/Checkmarx/2ms/v2"
Turns out this is as expected, an example of a bad UX of Golang IMO.
See how many downvotes 🤦♂️ golang/go#35732:
anyway, the workaround is to add /v2
to the module name
From our internal chat:
Regarding the go install github.com/Checkmarx/2ms
, if you will try it you will find out it installing v1.4.0
, while we are on v2.4.0
.
That's because Go requires us to branch out every major version 😲😲😲😲
Read more here:
Developing a major version update - The Go Programming Language
Although it is the community guidelines, I don't know if I want it.
And this is why I removed it from the REAMDE.
if you're against adding /v2 to module name, then I'm closing
will reopen if makes sense in the future
opened #135 as an alternative for non-developer users just want to try the tool