使用go get github.com/digitalocean/ceph_exporter 命令down下来的代码和GitHub上的master分支或tag中的代码都不一样,这是为什么呢?如果go get指向目标Repository的master分支,那么master分支怎样保证任何时刻都是可用的呢?于是带着疑问开始寻找答案。
[root@centos7 ~]# go version go version go1.10 linux/amd64 [root@centos7 ~]# go get -v github.com/digitalocean/ceph_exporter github.com/digitalocean/ceph_exporter (download) github.com/digitalocean/ceph_exporter/vendor/github.com/ceph/go-ceph/rados github.com/digitalocean/ceph_exporter/vendor/github.com/beorn7/perks/quantile github.com/digitalocean/ceph_exporter/vendor/github.com/golang/protobuf/proto github.com/digitalocean/ceph_exporter/vendor/github.com/prometheus/client_model/go github.com/digitalocean/ceph_exporter/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil github.com/digitalocean/ceph_exporter/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg github.com/digitalocean/ceph_exporter/vendor/github.com/prometheus/common/model github.com/digitalocean/ceph_exporter/vendor/github.com/prometheus/common/expfmt github.com/digitalocean/ceph_exporter/vendor/github.com/prometheus/procfs/xfs github.com/digitalocean/ceph_exporter/vendor/github.com/prometheus/procfs github.com/digitalocean/ceph_exporter/vendor/github.com/prometheus/client_golang/prometheus github.com/digitalocean/ceph_exporter/collectors github.com/digitalocean/ceph_exporter/vendor/github.com/prometheus/client_golang/prometheus/promhttp github.com/digitalocean/ceph_exporter/vendor/gopkg.in/yaml.v2