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

Fix bug with multiple GOPATH full package name resolving #151

Merged
merged 1 commit into from
Jun 29, 2018

Conversation

dvic
Copy link
Contributor

@dvic dvic commented Jun 27, 2018

This commit fixes the bug where GOPATH values that are longer than the input package name cause 'slice bounds out of range' errors.

@vektah
Copy link
Collaborator

vektah commented Jun 27, 2018

Mind throwing a test on it?

@dvic
Copy link
Contributor Author

dvic commented Jun 27, 2018

Sure no problem, do you have some advice on how to mock/control build.Default.GOPATH? Or do I need to change the method signature or read the GOPATH environment variable directly?

@vektah
Copy link
Collaborator

vektah commented Jun 27, 2018

It looks like its public, can you set it? 😈

@vektah
Copy link
Collaborator

vektah commented Jun 27, 2018

If you're about pop into https://gitter.im/gqlgen/Lobby

This commit fixes the bug where GOPATH values that are longer than the input package name cause 'slice bounds out of range'  errors.
@pseudomuto
Copy link

I hit this issue today trying to vendor this with retool. I would love this give this library a try, but I'm kind of stuck.

Any chance this could be merged and released as 0.2.2?

@vektah vektah merged commit 404f0b0 into 99designs:master Jun 29, 2018
cgxxv pushed a commit to cgxxv/gqlgen that referenced this pull request Mar 25, 2022
Fix bug with multiple GOPATH full package name resolving
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