-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gqlgen doesn't have a --version flag #182
Comments
I'm not sure if there is a good way to do this. gqlgen is both a library and a binary and both need to be in sync, so there will probably never be published release binaries. There goes I could commit Maybe it should probably be left up to dep/vgo/etc to answer this question. Anyone have ideas? |
I'm currently using |
Yeah there are a bunch of ways to run a command out of vendor.
They all have the same problem though, short of committing a version string I don't see a good way to get a version in there. I don't think dep even leaves the .git directory intact. |
^ This might be good feedback for @rsc while the go team is ironing out modules |
Theres a closed unresolved issue here golang/go#24051 Looks like go modules might be a step backwards for pinning per-project binaries. |
Maybe the binary could check the project lock file / module file to compare its internal version vs the library version |
I'd originally installed gqlgen using I should probably just remove the version installed by |
Yeah, that's the approach I've recommended in the getting started guide. Too many headaches when the binary and the lib fall out of sync. |
Sounds good. If you want to leave this open to see if anyone else has better ideas, fine, if not, feel free to go ahead and close it. |
Expected Behaviour
The
gqlgen
command line tool has a flag to print which version ofgqlgen
is being run.Actual Behavior
As far as I can tell, there's not currently a way to see what version of
gqlgen
is being run.The text was updated successfully, but these errors were encountered: