-
Notifications
You must be signed in to change notification settings - Fork 43
Approach to vendoring dependencies #11
Comments
Vendoring is for programs, not libraries. |
But we do need to create a release version of wabbit! The project is useful for you in the current state? If so, we can release the v1.0. |
I believe that dependencies are dependencies.. About to create a release, sgtm. |
Libraries shall not vendor for several reasons, but the most important is that otherwise libraries could export in their APIs types from their own vendor directory making impossible (for example) to satisfy a library interface. You could get more information in the links below: The general advice to avoid such problems is adding vendor only to programs. But the example you give to me is a real one. The go-dockerclient isn't used in our library, but only in the test program. When we run "go test", it builds a program that uses our library to test, than it's reasonable to vendor the libs used in tests (because it's a program). go-dockerclient is a safe dependency to vendor in our side (no one will ever import it), but the |
Perfect !! 🚶🏻Ty @tiago4orion |
To avoid troubles with dependencies versions, the Go team's recommended approach to vending dependencies [link].
We can use
godep
to make it..wdyt?
The text was updated successfully, but these errors were encountered: