Vendor 包管理器 Govendor

Govendor 是 Golang 的 Vendor 包管理器,方便你管理 Vendor 和 Verdor 包。golang

特性:fetch

  • 能夠採用govendor add/update複製現有的依賴從$GOPATHui

  • 若是要忽視vendor/*/,可採用govendor 同步恢復依賴操作系統

  • 可直接經過govendor fetch控制器添加新的依賴或者更新現有依賴code

  • 可採用govendor migrate 實現系統間遷移orm

  • 支持Linux, OS X, Windows,甚至現有全部操做系統blog

  • 支持Git,Hg,SVN,BZR(必須指定一個路徑)ci

 

快速開始同步

# Setup your project.
cd "my project in GOPATH"
govendor init

# Add existing GOPATH files to vendor.
govendor add +external

# View your work.
govendor list

# Look at what is using a package
govendor list -v fmt

# Specify a specific version or revision to fetch
govendor fetch golang.org/x/net/context@a4bbce9fcae005b22ae5443f6af064d80a6f5a55
govendor fetch golang.org/x/net/context@v1   # Get latest v1.*.* tag or branch.
govendor fetch golang.org/x/net/context@=v1  # Get the tag or branch named "v1".

# Update a package to latest, given any prior version constraint
govendor fetch golang.org/x/net/context

# Format your repository only
govendor fmt +local

# Build everything in your repository only
govendor install +local

# Test your repository only
govendor test +local
相關文章
相關標籤/搜索