-
Notifications
You must be signed in to change notification settings - Fork 454
godep update adds dependencies' vendor directories #498
Comments
I am also not sure whether this is normal beahvior or a bug. Is |
No, this is a bug. On Wed, Aug 10, 2016 at 1:24 AM David Mohl [email protected] wrote:
|
Here is a workaround until this gets fixed:
|
I think this is the expected behavior. From https://golang.org/s/go15vendor
So the expected should be to also vendor vendors dependencies' and so on...
|
I also want flattened dependencies . kubernetes uses github.com/golang/glog, my project uses glog too, but i cannot manage glog with godep |
FWIW: Now that work has started for a native solution ( On Tue, Aug 30, 2016 at 5:00 AM oscarzhao [email protected] wrote:
|
kubernetes/client-go solved my problem, eventually |
godep will introduce a nested-vendor issue when update a dep: ``` godep update github.com/hyperhq/runv/... ``` will include `github.com/hyperhq/runv/vendor/*` to vendor/ , and this is still an open issue for godep tools/godep#498 and has last for more than 8 months. Move to govendor could solve this. However, official `go dep` tool is under development (which is not release and not fit for daily usage yet) and plan to release with go 1.10 by the end of 2017. I am not sure whether we should change a vendor tool just for about 9 months. ref: https://github.com/golang/dep/wiki/Roadmap Signed-off-by: Wang Xu <[email protected]>
Update the cilium godep to get the bpf map-in-map types. Also remove dependencies' vendor which were introduced by mistake in commit 782193b ("Godeps: update cilium"). This is a know limitation of godep (see tools/godep#498). Signed-off-by: Tobias Klauser <[email protected]>
Update the cilium godep to get the bpf map-in-map types introduced in cilium/cilium#425. Also remove dependencies' vendor which were introduced by mistake in commit 782193b ("Godeps: update cilium"). This is a know limitation of godep (see tools/godep#498). Signed-off-by: Tobias Klauser <[email protected]>
Expected behavior
godep update
does not add the updated dependencies' vendored dependencies.Actual behavior
godep update
vendors dependencies' vendored dependencies.Step 2 (correctly) does not create $GOPATH/src/bar/vendor/foo/vendor/quux, but step 3 does.
Steps to reproduce behavior
With this tree:
And assuming that bar imports foo,
cd $GOPATH/src/bar
godep save
godep update foo
godep version
outputgodep v74 (darwin/amd64/go1.6.2)
go version
outputgo version go1.6.2 darwin/amd64
The text was updated successfully, but these errors were encountered: