Build via Go install
Dear @loreto, Go team recommends using go install instead of go get, but…
$ go install -ldflags="-s -w" github.com/jetify-com/typeid@latest
go: downloading github.com/jetify-com/typeid v0.1.1
go: github.com/jetify-com/typeid@latest: version constraints conflict:
github.com/jetify-com/[email protected]: parsing go.mod:
module declares its path as: go.jetpack.io/typeid-cli
but was required as: github.com/jetify-com/typeid
Could you be so kind to fix it?
Hi @sergeevabc, I'm not sure this is something that is broken on our end. Our go modules live under go.jetpack.io / go.jetify.com and not under github.com. I think you're using the wrong url in the install command.
For the last release, have you tried: go install -ldflags="-s -w" go.jetpack.io/typeid-cli@latest?
Note that because we are transitioning from jetpack.io to jetify.com, there will be a major release at some point (breaking change), and at that point you would have to install with go.jetify.com/typeid-cli@latest
Seems broken to me, @loreto.
$ go install -ldflags="-s -w" go.jetpack.io/typeid-cli@latest
go: go.jetpack.io/typeid-cli@latest: unrecognized import path "go.jetpack.io/typeid-cli": reading https://go.jetpack.io/typeid-cli?go-get=1: 404 Not Found
$ go install -ldflags="-s -w" go.jetify.com/typeid-cli@latest
go: go.jetify.com/typeid-cli@latest: unrecognized import path "go.jetify.com/typeid-cli": reading https://go.jetify.com/typeid-cli?go-get=1: 404 Not Found