dep init failed: unable to detect the containing GOPATH; dep doesn't look at "Project Gopath"

I set up a project with a local Gopath and configured the Project GOPATH variable. debugging works great and all is as i hoped, however the dep integration is still looking at the global gopath env variable and therefore not being able to initialize.

0
正式评论

Can you, please, provide more details on this? At what point you change the GOPATH to a local one?
When you create project outside GOPATH via project wizard, `dep init` will fail, as it expects the project is inside GOPATH. If you then go to project settings, change GOPATH to a local one, that contains your current project, and rerun `dep init`, it should succeed.

请先登录再写评论。