代码拉取完成,页面将自动刷新
go get -u github.com/kardianos/govendor
govendor add/update
to update from GOPATH.govendor fetch
to update from remote.govendor sync
after pull or clone to get
correct vendor packages. Add vendor/*/
in your vcs ignore file.govendor add pkgA -uncommitted
in cmd B project. This will update
the files, but not update the checksum or revision.
This way govendor sync
will revert the files and govendor status
will show
this package as out-of-date.<import-path>[::<origin-path]
for examples
github.com/bob/stuff/…::github.com/alice/stuff
will record the packages as
from bob, but record the origin from alice.govendor fetch
to
update to the latest revision while still remaining on the specified version
range. To specify a specific version, don’t edit a file, just use the command
line govendor fetch github.com/alice/watch/…@v1
. Version ranges specify a
major version and an optional minimum minor and patch versions. It is
recommended to just specify a major version.govendor add +external
. To remove all dependencies in
the vendor folder run govendor remove +vendor
../…
debate regarding vendor folder by introducing a concept of
"status". Running govendor test +local
will test all non-local packages.[<optional-prefix>-]v<major-number>.<minor-number>.<patch-number>[-<pre-release-label>]
examples: ssh-v1.0.1-alpha
, ssh-v.11.0
, v2.0.1
.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。