使用”go get”命令安装Go包是否算作在GitHub上进行克隆操作?

huangapple go评论93阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2016年1月24日 20:45:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/34975947.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定