Skip to content

Added the local GOPATH folder as primary dependencies's source#33

Open
theskyinflames wants to merge 3 commits intokovetskiy:masterfrom
theskyinflames:master
Open

Added the local GOPATH folder as primary dependencies's source#33
theskyinflames wants to merge 3 commits intokovetskiy:masterfrom
theskyinflames:master

Conversation

@theskyinflames
Copy link
Copy Markdown

Hi,
I have had problems to use Manul with beanstalkapp.com. So, I have decided to download my beanstalkapp dependencies with go get tool, and modify the submodule.go source so that it first try to import the dependencies from the local GOPATH.

Regards,
Jaume Arús

Comment thread submodule.go
target = "vendor/" + importpath
target = "vendor/" + importpath
gopath = os.Getenv("GOPATH")
fileUrl = fmt.Sprintf("file://%s/src/", gopath)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about the case of multiple paths in GOPATH?

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