"vendoring" 在 Go 中是什么意思?

What does "vendoring" mean in Go?

在学习 Go 的依赖管理时,我经常听到 "vendor" 这个词用作动词。示例:"The dependencies that your application vendors..."

在这种情况下,供应依赖项 是什么意思?


示例:

"Dependencies that are vendored with your application"

来源:https://devcenter.heroku.com/articles/getting-started-with-go#declare-app-dependencies

"godep will write the vendored code"

来源:https://github.com/tools/godep#go-15-vendor-experiment


后续问题:

Go 的 here 定义为:

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.

我不知道Ruby。

本质上,您正在获取一个包,将其存储在您自己的项目中,并使用该版本进行构建。我把它比作你在构建网页时可能有一个 "vendors" 文件夹,你可以在其中放置第三方 css 或 js。