Go: Allow users to specify known import prefixes for import paths.

Review Request #3120 - Created Nov. 13, 2015 and submitted

Information
Daniel Bentley
pants
2560
Reviewers
pants-reviews
jsirois

Before this change, Go's ArchiveFetcher could only determine the root of a prefix by looking at what matched from the regex. This doesn't work if you are downloading tarballs from artifactory, where the files in the tarball may be arbitrarily deep.

Instead, allow a user to pass (or set in pants.ini) a list of known prefixes. Use these prefixes to determine the root, which lets us put go_remote_libraries in the correct package, instead of trying to look them up in their own package.

Used to build from an internal artifactory.

John Sirois
Daniel Bentley
Stu Hood
Daniel Bentley
Stu Hood
Daniel Bentley
Review request changed

Status: Closed (submitted)

Change Summary:

Merged as 50012bd7e169d744223c4e8ba8594cfc9e3be6ce

Loading...