Added support for package-level queries (and a README)

I noticed that package-level queries were not supported, with a vague note about
how Gerrit supports arbitrarily deep repos making this impossible.  It's actually
pretty simple to support this: you just find the package with the greatest depth
that matches the request.

If you have a Gerrit setup with packages that have overlapping names (for example,
you have both "a" and "a/b" projects at the same time), then when a request for
package "a/b" is made, repo "a/b" will be preferred over "a" (even if "a" actually
had a package "b").  Just because Gerrit allows you to do crazy things with your
names doesn't mean that you should actually take it up on that offer.

Anyway, we're using this now in production and it has made it so that `go dep` works
with our private Gerrit instance.

Change-Id: I5c5daa4984a5993aec39da60ea8cca2d3ab94415
4 files changed
tree: e457f01a1be71739638454b64756f5484678cc27
  1. lib/
  2. src/
  3. tools/
  4. .buckconfig
  5. .gitignore
  6. bazlets.bzl
  7. BUCK
  8. BUILD
  9. external_plugin_deps.bzl
  10. README.md
  11. WORKSPACE
README.md

This plugin allows you to perform go get requests against a Gerrit project.

For more information, see: src/main/resources/Documentation/about.md