Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is "vendoring"?

What is "vendoring" exactly? How would you define this term?

Does it mean the same thing in different programming languages? Conceptually speaking, not looking at the exact implementation.

like image 339
Niels Bom Avatar asked Oct 06 '14 13:10

Niels Bom


People also ask

What is Vendoring code?

Vendoring is hard-coding the often forked version of a dependency. This typically involves static linking or some other copy but it doesn't have to. Right or wrong, the term "hard-coding" has an old and bad reputation.

What is Golang Vendoring?

Vendoring is a method of ensuring that all of your 3rd party packages that you use in your Go project are consistent for everyone who develops for your application. When your Go package imports another package, the compiler normally checks $GOPATH/src/ for the path of the imported project.


1 Answers

Based on this answer

Defined here for Go as:

Vendoring is the act of making your own copy of the 3rd party packages your project is using. Those copies are traditionally placed inside each project and then saved in the project repository.

The context of this answer is in the Go language, but the concept still applies.

like image 72
17xande Avatar answered Sep 23 '22 03:09

17xande