github.com/anthonymayer/glide@v0.0.0-20160224162501-bff8b50d232e/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    # This will fetch the entire technosophos/luge package, but only
    42    # 'go build' the technosophos/luge/foo and technosophos/luge/bar packages.
    43    - package: github.com/technosophos/luge
    44      vcs: git
    45      subpackages:
    46        - foo
    47        - bar
    48        # Shell globs are also supported:
    49        - pa?e
    50        - [wc]*
    51  
    52    # Use '...' to tell glide to build ALL of the subpackages.
    53    - package: github.com/Masterminds/blarg
    54      subpackages: ...
    55  
    56    - package: bzr.example.com/foo/bar/trunk
    57      vcs: bzr
    58      repo: bzr://bzr.example.com/foo/bar/trunk
    59      # The version can be a branch, tag, commit id, or a semantic version
    60      # constraint parsable by https://github.com/Masterminds/semver
    61      version: 1.0.0
    62  
    63    - package: hg.example.com/foo/bar
    64      vcs: hg
    65      repo: http://hg.example.com/foo/bar
    66      version: ae081cd1d6cc
    67  
    68    # For SVN, the only valid version is a commit number. Tags and branches go in
    69    # the repo URL.
    70    - package: svn.example.com/foo/bar/trunk
    71      vcs: svn
    72      repo: http://svn.example.com/foo/bar/trunk
    73  
    74  
    75    # If a package is dependent on OS, you can tell Glide to only
    76    # fetch for certain OS or architectures.
    77    #
    78    # os can be any valid GOOS.
    79    # arch can be any valid GOARCH.
    80    - package: github.com/unixy/package
    81      os:
    82        - linux
    83        - darwin
    84      arch:
    85        - amd64