-
Notifications
You must be signed in to change notification settings - Fork 570
Support for vgo builds outside GOPATH #835
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
Comments
Wouldn't this break compatibility with |
Hi @flimzy , I can't say for sure, as I'm not knowledgeable of the internals of either GopherJS, Vgo toolchain, or Go toolchain. But what I can say is that, from a practical perspective, it seems that the VGo binary behaves exactly like the Go binary in "normal" Golang codebases (ie, with a "traditional" GOPATH). To "activate" the special features, you have to create a file called So I would assume that it wouldn't break compatibility - VGo is intended to be released as part of Go 1.11, AFAIK. If they don't break the "promise of compatibility", it should be compatible. Cheers! |
@bfreis @flimzy - this should be possible. At the moment GopherJS uses |
If this is slated for inclusion in Go 1.11, doesn't it make sense for GopherJS to wait until Go 1.11, as well? I'd be very concerned about projects that work with both Go and GopherJS, being treated differently in the two environments. In this sense, retaining backward compatibility isn't the only compatibility concern. |
Sorry, yes, agreed - that was implicit in my answer. Arguably we could/should wait for an initial cut of |
Just an FYI on this issue, I am working on This will initially be be merged into https://github.com/myitcv/gopherjs. I will also raise a PR against this repo, but I know @shurcooL has a lot on at the moment. |
@myitcv any updates on this? |
@Gee5ive https://github.com/myitcv/gopherjs/tree/go1.11 is being actively maintained. It has Go 1.11 support, almost complete support for modules, as well as the changes from the following PRs that are still open in this main repo:
|
@Gee5ive (and others) I've just merged the changes in the |
I'm closing this in favor of #855, which is an effective duplicate, after modules have been made official. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I have no clue how easy or difficult this would be. Any chance of adding support for looking up packages the way
vgo
does? It allows go modules to be built outside of theGOPATH
, and it looks up dependencies in$GOPATH/go/src/mod/${IMPORT_PATH}@${VERSION}/
, where import_path and version are as defined in thego.mod
file in the project folder.I've never looked into GopherJS code, but I'm assuming this wouldn't be terribly complicated?
Cheers!
Bruno
The text was updated successfully, but these errors were encountered: