-
Notifications
You must be signed in to change notification settings - Fork 1k
dep init fails in subdir #731
Comments
@sdboyer Is it always the case that project root = root of repo? I tried making a simple project and put my go code in a subdir and ran |
It doesn't have to be - strictly speaking, you can manually create a However, moving the
(this deserves an FAQ item - assigning to me for that) |
The below results in this for me. Is this related to the same issue ?
I am able to run |
So just to confirm: I created my Gopkg.toml in a directory that was not the root of my repository and ran all |
@alexflint Could you please provide more context? What commands did you try and what was the output (and error message if applicable)? |
Hi, let's assume this use case. I am building microservices. Is it better to maintain a single vendor folder in the root of the project or to allow each microservices folder to manage their dependencies? I have discovered before stumbling upon this issue that dep init in a sub directory fails after a long wait. What is the best approach? |
If I run
dep init
at the top of my repository (ie$GOPATH/github.com/xxx/yyy
) then everything works fine. But the repository I'm working in contains mostly c++, and all the Go code actually lives in a subdirectory, so I'd also likeGopkg.lock
,Gopkg.toml
, and thevendor
directory to live under that subdirectory. But if I rundep init
within that repository then I get a bunch of failed constraint messages.The text was updated successfully, but these errors were encountered: