github.com/ilyakaznacheev/glide@v0.13.2/docs/example-glide.yaml (about) 1 # The name of this package. 2 package: github.com/Masterminds/glide 3 4 # External dependencies. 5 import: 6 # Minimal definition 7 # This will use "go get [-u]" to fetch and update the package, and it will 8 # attempt to keep the release at the tip of master. It does this by looking 9 # for telltale signs that this is a git, bzr, or hg repo, and then acting 10 # accordingly. 11 - package: github.com/kylelemons/go-gypsy 12 13 # Full definition 14 # This will check out the given Git repo, set the version to master, 15 # use "git" (not "go get") to manage it, and alias the package to the 16 # import path github.com/Masterminds/cookoo 17 - package: github.com/Masterminds/cookoo 18 vcs: git 19 version: master 20 repo: git@github.com:Masterminds/cookoo.git 21 22 # Here's an example with a commit hash for a version. Since repo is not 23 # specified, this will use git to to try to clone 24 # 'http://github.com/aokoli/goutils' and then set the revision to the given 25 # hash. 26 - package: github.com/aokoli/goutils 27 vcs: git 28 version: 9c37978a95bd5c709a15883b6242714ea6709e64 29 30 # MASKING: This takes my fork of goamz (technosophos/goamz) and clones it 31 # as if it were the crowdmob/goamz package. This is incredibly useful for 32 # masking packages and/or working with forks or clones. 33 # 34 # Note that absolutely no namespace munging happens on the code. If you want 35 # that, you'll have to do it on your own. The intent of this masking was to 36 # make it so you don't have to vendor imports. 37 - package: github.com/crowdmob/goamz 38 vcs: git 39 repo: git@github.com:technosophos/goamz.git 40 41 - package: bzr.example.com/foo/bar/trunk 42 vcs: bzr 43 repo: bzr://bzr.example.com/foo/bar/trunk 44 # The version can be a branch, tag, commit id, or a semantic version 45 # constraint parsable by https://github.com/Masterminds/semver 46 version: 1.0.0 47 48 - package: hg.example.com/foo/bar 49 vcs: hg 50 repo: http://hg.example.com/foo/bar 51 version: ae081cd1d6cc 52 53 # For SVN, the only valid version is a commit number. Tags and branches go in 54 # the repo URL. 55 - package: svn.example.com/foo/bar/trunk 56 vcs: svn 57 repo: http://svn.example.com/foo/bar/trunk 58 59 60 # If a package is dependent on OS, you can tell Glide to only 61 # fetch for certain OS or architectures. 62 # 63 # os can be any valid GOOS. 64 # arch can be any valid GOARCH. 65 - package: github.com/unixy/package 66 os: 67 - linux 68 - darwin 69 arch: 70 - amd64