[fxicfg] Add builtin to register a file to genenerate

* Remove UpdateThreadState - it's unclear if this abstraction is
  really useful yet and it's tempting to misuse it by performing
  extra state mutation inside that function.
* Include "struct" as a predeclared.
* Record all files to generated in State.
* Add an errors package so we can discern between errors in test
  code and the errors we want to validate during testing.

Test: go test -count=100 ./...
Bug: IN-1102 #comment
Change-Id: I096ecac67faab84eb78c7f86573b3c3529f10060
9 files changed
tree: e04ffb807aec8e7c0cf1f66241eed67943b0a9c4
  1. cmd/
  2. fxicfg/
  3. gerrit-policy/
  4. gotidy/
  5. retry/
  6. tools/
  7. .gitignore
  8. AUTHORS
  9. go.mod
  10. go.sum
  11. LICENSE
  12. MAINTAINERS
  13. manifest
  14. packages_to_publish.json
  15. PATENTS
  16. 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}