-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
When compiling local module based package i get "unknown import path" error #16
Comments
I have the same issue. It doesn't work because of this code https://github.com/techknowlogick/xgo/blob/master/docker/base/build.sh#L153 @techknowlogick I can fix it, could you let me know if you accept pull requests. |
@anjmao Sure, either @techknowlogick or I will review. |
@anjmao any updates? |
Hi @kolaente Sorry, for late response. I end up using my own fork since your fork doesn't support gomobile. |
In my fork I dropped support for old GOPATH based builds https://github.com/anjmao/xgo and fixed this issue too. |
@anjmao That sounds awesome! We've been wanting to do this since Go 1.10 is eol. |
Yeah, we could probably drop gopath support now that we support a minimum of golang 1.13 |
This may have been solved recently - please try again |
Closing, but please re open if issue remains |
I have a local module based code base with CGO dependancies, which builds on my host OS (OSX). I am working with it outside the GOPATH which is why I am using this fork. My packages import path is, let's say, "github.com/foo/bar". I have a cmd directory, with a "server" command, which would then be at "github.com/foo/bar/cmd/server". My xgo command is something like:
but it fails with:
The text was updated successfully, but these errors were encountered: