Skip to content

Use default importer when inside GOROOT #15

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kevinmu
Copy link

@kevinmu kevinmu commented Nov 28, 2018

This is a short fix for the issue described in #13 . We get GOROOT from the environment, and when deciding whether to use the custom importer, we check that the root is inside GOPATH but NOT in the GOROOT.

Signed-off-by: Kevin Mu [email protected]

@erizocosmico
Copy link
Contributor

Hi! Thanks for the contribution.

Fix seems ok, but tests are failing, could you take a look at them?

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.

2 participants