2020-02-16 14:11:15 +00:00
|
|
|
# Internal
|
|
|
|
|
|
|
|
This directory contains internal code for cloud.google.com/go packages.
|
|
|
|
|
|
|
|
## .repo-metadata-full.json
|
|
|
|
|
|
|
|
`.repo-metadata-full.json` contains metadata about the packages in this repo. It
|
|
|
|
is generated by `internal/gapicgen/generator`. It's processed by external tools
|
|
|
|
to build lists of all of the packages.
|
|
|
|
|
|
|
|
Don't make breaking changes to the format without consulting with the external
|
|
|
|
tools.
|
|
|
|
|
|
|
|
One day, we may want to create individual `.repo-metadata.json` files next to
|
|
|
|
each package, which is the pattern followed by some other languages. External
|
|
|
|
tools would then talk to pkg.go.dev or some other service to get the overall
|
|
|
|
list of packages and use the `.repo-metadata.json` files to get the additional
|
2023-01-23 16:05:39 +00:00
|
|
|
metadata required. For now, `.repo-metadata-full.json` includes everything.
|
|
|
|
|
|
|
|
## cloudbuild.yaml
|
|
|
|
|
2023-05-10 06:13:50 +00:00
|
|
|
The `cloudbuild.yaml` Cloud Build configuration currently supports:
|
|
|
|
|
|
|
|
* Building a docker container from the `internal/postprocessor/Dockerfile`.
|
|
|
|
|
|
|
|
The build can be run locally in the `google-cloud-go` root directory:
|
2023-01-23 16:05:39 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
gcloud builds submit --project=cloud-devrel-kokoro-resources --config=internal/cloudbuild.yaml
|
|
|
|
```
|
2023-02-18 23:36:41 +00:00
|
|
|
|
2023-05-10 06:13:50 +00:00
|
|
|
See the [postprocessor/README](postprocessor/README.md) for instructions
|
|
|
|
regarding updating the post-processor docker container.
|
2023-02-18 23:36:41 +00:00
|
|
|
|
2023-05-10 06:13:50 +00:00
|
|
|
### Updating OwlBot SHA
|
2023-02-18 23:36:41 +00:00
|
|
|
|
2023-05-10 06:13:50 +00:00
|
|
|
You may want to manually update the which version of the post-processor will be
|
|
|
|
used -- to do this you need to update the SHA in the OwlBot lock file.
|
2023-02-18 23:36:41 +00:00
|
|
|
|
2023-05-10 06:13:50 +00:00
|
|
|
See the [postprocessor/README](postprocessor/README.md) for detailed
|
|
|
|
instructions.
|
2023-02-18 23:36:41 +00:00
|
|
|
|
|
|
|
*Note*: OwlBot will eventually open a pull request to update this value if it
|
|
|
|
discovers a new version of the container.
|