mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-28 22:16:04 +00:00
Update vendoring in CONTRIBUTING (#2945)
I'll mirror to TPGB on approval
This commit is contained in:
parent
661cf81bc3
commit
33628a508e
17
.github/CONTRIBUTING.md
vendored
17
.github/CONTRIBUTING.md
vendored
@ -22,22 +22,9 @@ Fields that are only available in beta versions of the Google Cloud Platform API
|
||||
|
||||
## Vendoring Libraries
|
||||
|
||||
When adding support for just-released GCP features, you'll often need to vendor a new version of the Google API client and
|
||||
occasionally some of the downstream dependencies of that client. The Google Provider uses [govendor](https://github.com/kardianos/govendor)
|
||||
in order to manage dependencies. To vendor a new package or update an existing package, run:
|
||||
When adding support for just-released GCP features, you'll often need to vendor a new version of the Google API client. The Google provider uses Go Modules; use `GO111MODULES=on go get {{dependency}}`, and the new dependencies will be included in your PR.
|
||||
|
||||
```bash
|
||||
govendor fetch {{path}}
|
||||
```
|
||||
|
||||
For example:
|
||||
|
||||
```bash
|
||||
govendor fetch google.golang.org/api/compute/v1
|
||||
```
|
||||
|
||||
When updating a vendored library, try to submit the vendoring as a separate pull request and include the commands you ran in
|
||||
the pull request description.
|
||||
If you're developing against Magic Modules, vendoring changes is done automatically by the Magician at PR time; you may need to `go get` locally, but those changes don't need to be included in your PR.
|
||||
|
||||
## Tests
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user