[build_init] Start porting bootstrap logic to a Go tool

This will replace all of the code in Fuchsia recipes
textproto module (//infra/recipes/recipe_modules/textproto/api.py).
It will eventually become Fuchsia's first subcommand to run
under kitchen. In the meantime, TextProtoApi will call it
under the hood.

Git commands were taken from the expectation files of
TextProtoAPI. This implementation differs in that it always
looks for specs in //integration, rather than in the repo
in the Buildbucket build input.

This commit only implements logic to ensure the integration
repository is checked out properly.

Bug: IN-1102 #comment
Change-Id: I23c452112a34a7269c0fdc164d86e356d4dbc14d
7 files changed
tree: 7886bb3feb8aec22f56a0c19e58d3b40883fc858
  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}