[build_init] Refactor checkout to make testing easier.

* Infer the path to git from current PATH instead of using a flag
  * infra.py will set this for testing
  * We can wrap this in a shell script on Buildbucket when the day
    comes
  * This makes testing easier.
* pkg executable -> execution
  * Add Executor to reduce boilerplate.
* Add Checkout() fn and make everything else package private.

Bug: IN-1102 #comment
Change-Id: I50c7963da55b800ce07f46cc73618e60a27307c4
9 files changed
tree: 1abb074a5c2db5beaff286b72cd5e69072f401ce
  1. cmd/
  2. fxicfg/
  3. gotidy/
  4. retry/
  5. tools/
  6. .gitignore
  7. AUTHORS
  8. go.mod
  9. go.sum
  10. LICENSE
  11. MAINTAINERS
  12. manifest
  13. packages_to_publish.json
  14. PATENTS
  15. README.md
README.md

infra

This repo contains tools and config files necessary to run infrastructure related to builds, code review, version control, and continuous integrations.

In order to build the Go code, you must clone this repo into an appropriately named directory. This should do the trick:

REPO=fuchsia.googlesource.com/infra/infra
git clone https://${REPO} $(go env GOPATH)/src/${REPO}