I'm playing with GraphQL in Go and I was trying to get gqlgen tool using the familiar go run
command.
I was expecting it to retrieve the latest available tag, instead I"m somehow getting a tag which does not seem to exist in the repo at all:
$ go run github.com/99designs/gqlgen version
v0.9.1-dev
I would expect the above to return per the latest tag
v0.13.0
Go version installed on my workstation:
$ go version
go version go1.15.5 darwin/amd64
Anyone has any ideas what's going on?
UPDATE: disabling GOPROXY
does not help
UPDATE2: it turns out the version is hardcoded into version.go
as you can see here, but even if go run
gets the master instead of the latest tag, you'd still expect the output to be 0.13.0-dev
as per the master branch Instead I suspect there is some string ordering of versions of tags which orders 0.9.*
above 0.1*.*