Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/vgo: Is it possible to vgo install a custom library outside of GOPATH? #25639
Perhaps I missed this in rsc's vgo introduction, but how is vgo install supposed to work when you install a custom package outside of the GOPATH?
What version of Go are you using (
@myitcv No, I just thought that writing a package outside of GOPATH would install into the correct directory in the GOPATH pkg tree based on the import module name, due to rsc's statement that vgo would deprecate GOPATH. I was just experimenting with vgo. So in the future, we should continue to write libraries inside the GOPATH/src tree?
@agnivade This is more of a question than an issue, although if vgo should support installing a non main package from outside GOPATH, then it could be considered an issue.
As I understand things, GOPATH is no longer a requirement; I'm not entirely clear that it will disappear entirely though. So, as per the vgo examples, you don't need to develop within GOPATH, but you can (for now).
If you are developing outside GOPATH, then
If you are developing inside GOPATH, the