https://pantsbuild.org/ logo
#general
Title
# general
e

enough-analyst-54434

10/23/2015, 2:09 AM
Here was adding golang.org/x:
Copy code
[fetchers]
mapping: {
    # Builtin fetchers:
    r'^bitbucket\.org/.*$': 'ArchiveFetcher',
    r'^github\.com/.*$':'ArchiveFetcher',
    r'^gopkg\.in/.*$':'GopkgInFetcher',

    # Our workaround custom fetcher until
    # <https://github.com/pantsbuild/pants/issues/2378> or
    # <https://github.com/pantsbuild/pants/issues/2379> is resolved.
    r'^golang\.org/x/.*$':'ArchiveFetcher',
  }


[archive-fetcher]
matchers: {
    # Builtin matchers:
    r'bitbucket\.org/(?P<user>[^/]+)/(?P<repo>[^/]+)':
      ('<https://bitbucket.org/\\g<user>/\\g<repo>/get/{rev}.tar.gz>', 'tip', 1),
    r'github\.com/(?P<user>[^/]+)/(?P<repo>[^/]+)':
      ('<https://github.com/\\g<user>/\\g<repo>/archive/{rev}.tar.gz>', 'master', 1),

    # Our workaround custom fetcher until
    # <https://github.com/pantsbuild/pants/issues/2378> or
    # <https://github.com/pantsbuild/pants/issues/2379> is resolved.
    r'golang\.org/x/(?P<user>[^/]+)':
      ('<https://github.com/golang/\\g<user>/archive/{rev}.tar.gz>', 'master', 1),
  }