99designs / gqlgen

go generate based graphql server library
https://gqlgen.com
MIT License
9.9k stars 1.15k forks source link

gqlgen is doing a force update to v0.17.50 #3274

Closed jlim1545 closed 3 weeks ago

jlim1545 commented 3 weeks ago

What happened?

We are on golang version 1.22.2 and have github.com/99designs/gqlgen v0.17.45 on our go.mod file. go get -u commands fails suddenly because it is trying to fetch v0.17.50 instead of pinned v.0.17.45.

error log: go get -u go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2) go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2) go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2) go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2) go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2) go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2) go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2) go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2) go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2) go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2) go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2) go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2) go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2) go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2) go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2) go: github.com/99designs/gqlgen@v0.17.50 requires go >= 1.22.5 (running go 1.22.2)

What did you expect?

Nothing changed on our side, so not sure why it is doing what I am seeing.

Minimal graphql.schema and models to reproduce

Use go: github.com/99designs/gqlgen@v0.17.45 with golang version 1.22.2 . try calling get get -u

versions

jlim1545 commented 3 weeks ago

I think the issue is the patch version upgrade now requires golang 1.22.5. -u command tries to fetch latest patch/minor version.