golang / dep

Go dependency management tool experiment (deprecated)
https://golang.github.io/dep/
BSD 3-Clause "New" or "Revised" License
12.85k stars 1.05k forks source link

Dep is copying packages to vendor which it should not. #2209

Closed srinivas-kandula closed 4 years ago

srinivas-kandula commented 5 years ago

This is related to the issue https://github.com/golang/go/issues/34558 on RHEL 8

What version of dep are you using (dep version)?

v0.5.4

What dep command did you run?

dep ensure

What did you expect to see?

What did you see instead?

I was not expecting dep to copy packages already within my repo into its own vendor directory.

srinivas-kandula commented 5 years ago

One thing worked for me is changing my path from upper to lowercase. /go/src/github.com/wavefrontHQ/wavefront-kubernetes-collector/vendor/github.com/wavefronthq/wavefront-kubernetes-collector

to

/go/src/github.com/wavefronthq/wavefront-kubernetes-collector/vendor/github.com/wavefronthq/wavefront-kubernetes-collector

Probably documenting this issue in dep may be useful.

mvdan commented 4 years ago

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!