什么是“售货”在Go中意味着什么 [英] What does "vendoring" mean in Go?

查看:133
本文介绍了什么是“售货”在Go中意味着什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在了解Go的依赖管理时,我经常听到用动词这个词作为动词。例如:应用程序供应商的依赖关系......



在这种情况下供应商依赖意味着什么?






示例:



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


godep会编写代码

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






后续问题:




  • 这与


  • 是此术语在 Go 1.5供应商试验中完全定义,或是否有单独的传统定义?

  • Go:http://www.goinggo.net/2013/10/manage-dependencies-with-godep.html\">这里为:


    供应商是制作您自己的项目正在使用的第三方包
    的副本。这些副本通常放置在每个项目的
    中,然后保存在项目存储库中。


    我不知道喷出什么Ruby。



    基本上,您正在接受一个包,将其存储在您自己的项目中并使用该版本进行构建。我把它比作你在建立网页时如何放置第三方CSS或JS的vendor文件夹。


    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 does it mean to vendor a dependency in this context?


    Examples:

    "Dependencies that are vendored with your application"

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

    "godep will write the vendored code"

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


    Follow-up questions:

    解决方案

    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.

    这篇关于什么是“售货”在Go中意味着什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆