Add support for fetching test deps.

Review Request #2671 - Created Aug. 21, 2015 and submitted

Information
John Sirois
pants
jsirois/issues/2004
2004, 2036
2f3e3b5...
Reviewers
pants-reviews
fkorotkov, kwlzn, mateor
This necessitated adding support for the gopkg.in fetch protocol.

Add a flag to turn on testing of remote libraries and use that to
create an integration test for #2004.

 contrib/go/examples/3rdparty/go/github.com/bmizerany/assert/BUILD                |   4 +
 contrib/go/examples/3rdparty/go/github.com/kr/pretty/BUILD                       |   4 +
 contrib/go/examples/3rdparty/go/github.com/kr/text/BUILD                         |   4 +
 contrib/go/examples/3rdparty/go/gopkg.in/check.v1/BUILD                          |   3 +
 contrib/go/src/python/pants/contrib/go/subsystems/BUILD                          |  23 +++---
 contrib/go/src/python/pants/contrib/go/subsystems/fetchers.py                    | 200 +++++++++++++++++++++++++++++++++++++++++++++-----
 contrib/go/src/python/pants/contrib/go/tasks/go_fetch.py                         |   9 ++-
 contrib/go/src/python/pants/contrib/go/tasks/go_test.py                          |   6 +-
 contrib/go/tests/python/pants_test/contrib/go/subsystems/BUILD                   |  13 ++++
 contrib/go/tests/python/pants_test/contrib/go/subsystems/test_fetchers.py        | 129 ++++++++++++++++++++++++++++++++
 contrib/go/tests/python/pants_test/contrib/go/tasks/test_go_fetch_integration.py |  14 ++++
 contrib/release_packages.sh                                                      |   2 +-
 12 files changed, 376 insertions(+), 35 deletions(-)
CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/76550920
John Sirois
John Sirois
John Sirois
John Sirois
John Sirois
John Sirois
John Sirois
John Sirois
Kris Wilson
John Sirois
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Loading...