Skip to content
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

Add support for go modules #514

Merged
merged 3 commits into from
Jan 27, 2019
Merged

Add support for go modules #514

merged 3 commits into from
Jan 27, 2019

Conversation

vektah
Copy link
Collaborator

@vektah vektah commented Jan 26, 2019

Recent refactors have made this pretty easy.

Replaces all references to go/build and golang.org/x/tools/go/loader with golang.org/x/tools/go/packages to get module support.

Looks like this will speed up generation by ~2x.

Closes #226

@vektah vektah force-pushed the gomod branch 3 times, most recently from 8a1c997 to e0ceec1 Compare January 26, 2019 07:32
@bheatwole
Copy link

For those that wish to use this immediately (before it is released) you can run the following after you've done go mod init in your project directory:

go get github.com/99designs/gqlgen@next

or if you wish to be more specific on the commit that added this functionality:

go get github.com/99designs/gqlgen@055fb4bc9a6a

This won't be necessary after this is released with an official v7.1.1 (or whatever it happens to be) tag.

@genert
Copy link

genert commented Jan 31, 2019

Amazing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants