• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 7428
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: fix/uv-pex-lock-export
DEFAULT BRANCH: main
Ran 16 Oct 2015 07:44AM UTC
Jobs 8
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
7428

push

travis-ci

jsirois
Add support for golang.org/x remote libs.

Although golang.org/x supports the `go get` <meta> protocol, pants does
not have a `Fetcher` that supports that protocol yet, so just use the
standard `ArchiveFetcher` with a regex mapping that redirects directly
to github (this appears to be the consistent pattern of th golang.org/x
<meta> re-directs).

Add a test to cover this new default fetcher configuration.

Testing Done:
Manually tested this in a custom Medium pants.ini setup:
```ini
[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),
  }
```

CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/85667224

Bugs closed: 2378, 2379, 2380

Reviewed at https://rbcommons.com/s/twitter/r/2976/
Jobs
ID Job ID Ran Files Coverage
1 7428.1 (CI_FLAGS="-cjlpn 'Various pants self checks'") 16 Oct 2015 07:44AM UTC 0
Travis Job 7428.1
4 7428.4 (CI_FLAGS="-fkmsrcjlp 'Python contrib tests'") 16 Oct 2015 08:03AM UTC 0
Travis Job 7428.4
5 7428.5 (CI_FLAGS="-fkmsrjlpn -i 0/6 'Python integration tests for pants - shard 1'") 16 Oct 2015 07:55AM UTC 0
Travis Job 7428.5
6 7428.6 (CI_FLAGS="-fkmsrjlpn -i 1/6 'Python integration tests for pants - shard 2'") 16 Oct 2015 07:53AM UTC 0
Travis Job 7428.6
7 7428.7 (CI_FLAGS="-fkmsrjlpn -i 2/6 'Python integration tests for pants - shard 3'") 16 Oct 2015 07:57AM UTC 0
Travis Job 7428.7
8 7428.8 (CI_FLAGS="-fkmsrjlpn -i 3/6 'Python integration tests for pants - shard 4'") 16 Oct 2015 08:00AM UTC 0
Travis Job 7428.8
9 7428.9 (CI_FLAGS="-fkmsrjlpn -i 4/6 'Python integration tests for pants - shard 5'") 16 Oct 2015 08:01AM UTC 0
Travis Job 7428.9
10 7428.10 (CI_FLAGS="-fkmsrjlpn -i 5/6 'Python integration tests for pants - shard 6'") 16 Oct 2015 08:05AM UTC 0
Travis Job 7428.10
Source Files on build 7428
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7428
  • 18e00f79 on github
  • Prev Build on master (#7422)
  • Next Build on master (#7429)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc