typeid icon indicating copy to clipboard operation
typeid copied to clipboard

Build via Go install

Open sergeevabc opened this issue 9 months ago • 2 comments

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?

sergeevabc avatar Mar 19 '25 17:03 sergeevabc

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

loreto avatar Mar 24 '25 14:03 loreto

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

sergeevabc avatar Mar 24 '25 16:03 sergeevabc