-
Notifications
You must be signed in to change notification settings - Fork 24
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
read package path from go.mod if it exists #30
Conversation
Thanks! Can we switch it using this https://godoc.org/github.com/rogpeppe/go-internal/modfile#ModulePath instead? should be more resilient. :) |
haha that's some nice round wheels I reinvented, was actually looking for some built in stuff like this. I'll make the changes :) |
@markbates what do you think should happen if the go.mod is malformed and the package path cannot be found? Should we return an error or infer it from the current path? |
if mods are on:
If mods are off:
how's that sound to you? |
sounds good :) so we check for GO111MODULE env first? |
Yep, if it’s on then use mods. That’s the pattern we’re taking everywhere else. We don’t have “auto”. :)
…--
Mark Bates
CTO/Founder
On Oct 24, 2018, 5:09 PM -0400, Eric Ren ***@***.***>, wrote:
sounds good :) so we check for GO111MODULE env first?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
should be working now, using v1.0.0-alpha for go-internal/modfile, only change from 0.0.8 to alpha seems to be changing of name from mod-internal to go-internal. |
Thanks! I noticed another issue when trying this that needs to be fixed before I can cut a release. |
@rrrkren v1.0.5 should do it! :) |
this fixes #29