英文:
Is installing a Go package with 'go get' counted as cloning at GitHub?
问题
当用户使用以下命令安装Go包时:
go get github.com/username/repositoryname/packagename
这是否会被GitHub流量统计为克隆?
我有一个新的Go仓库,我的GitHub账户统计了几个克隆。然而,我使用go get命令几次安装了自己的包作为测试。这也会被统计为克隆,还是只有当用户点击"Clone in desktop"时才会统计?
英文:
When a user installs a Go package with the command:
go get github.com/username/repositoryname/packagename
is this counted in the GitHub traffic as cloning?
I have a new Go repository and my GitHub account counted several clones. However I installed my own package as a test with the go get command a few times. Is this also counted as cloning or only when a user clicks on 'Clone in desktop'?
答案1
得分: 2
是的。go get
命令会克隆代码库(如果启用了GO15VENDOREXPERIMENT,则还会克隆vendor目录中的任何子模块)。由于代码库正在被克隆,因此在流量统计中会计入克隆的流量。
英文:
Yes. go get
clones the repository (as well as any submodules in the vendor directory if GO15VENDOREXPERIMENT is enabled.) Since the repository is being cloned, it will count in the traffic as cloning.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论