Fix Go targets to glob more than '.go' files.

Review Request #2873 - Created Sept. 23, 2015 and submitted

John Sirois
2249, 2255
kwlzn, mateor, zundel
Go packages can rely on local sibling '.c', '.cc' and other files to
build correctly and local tests might rely on loose resource files as
part of performing a test.

Allow for both of these cases by relaxing restrictions on files types
globbed by the go local source targets and by the GoWorkspaceTask when
setting up a local workspace for a remote lib.

Tests are updated to exercise these cases.

 contrib/go/src/python/pants/contrib/go/targets/                  | 10 +++++++++-
 contrib/go/src/python/pants/contrib/go/tasks/BUILD                                 |  1 -
 contrib/go/src/python/pants/contrib/go/tasks/                  |  5 +++--
 contrib/go/tests/python/pants_test/contrib/go/targets/ | 39 +++++++++++++++++++++++++++++++++++++++
 contrib/go/tests/python/pants_test/contrib/go/tasks/      | 11 +++++++----
 5 files changed, 58 insertions(+), 8 deletions(-)

Ran green locally: ./pants clean-all test contrib/go/::

CI went green here:

Kris Wilson
Mateo Rodriguez
Eric Ayers
John Sirois
John Sirois
Mateo Rodriguez
John Sirois
Vinny Fuentes
John Sirois
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)