What does “vendoring” mean in Go?

后端 未结 1 841
温柔的废话
温柔的废话 2020-12-31 02:51

When learning about Go\'s dependency management, I often hear the term \"vendor\" used as a verb. Example: \"The dependencies that your application vendors...\"

What

1条回答
  •  囚心锁ツ
    2020-12-31 03:06

    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.

    I don't know squirt about Ruby.

    Essentially you're taking a package, storing it within your own project and using that version to build from. I liken it to how you might have a "vendors" folder where you put third party css or js when building a web page.

    0 讨论(0)
提交回复
热议问题