This repository has been archived by the owner on Dec 24, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit also accomodates two breaking changes in the Google Go SDK:
one, where a type was renamed, and two, when an API parameter was
generalized.
This repo originally used
govendor
, which is willing to vendor individual subpackages of one repo at different commit hashes. Conceptually, this is not a problem for Go and there's no reason why this is invalid, but the reality is thatdep
is very opinionated and does not allow this. Dep requires that all packages within a repo come from the same commit hash.This poses a problem for us since the upstream repo vendors subpackages of
cloud.google.com/go
at different commit hashes. Sincedep
is absolutely not willing to budge on this issue, our options are 1) accept that we must usegovendor
and integrategovendor
into the GCP provider build or 2) force this repo to adhere todep
, which means locking to a specific version ofcloud.google.com/go
and addressing the breakage that arises from that.This PR takes option number 2 because there are only two places where locking
cloud.google.com/go
caused breakage:cloudbilling.Service
tocloudbilling.APIService
without bumping semverterraform-provider-google
uses Beta Compute APIs to implement thegoogle_compute_subnetwork_iam_policy
, which made a breaking change.I tried to run the upstream acceptance tests that test
google_compute_subnetwork_iam_policy
, but I couldn't get them to pass in the pristine upstream repo. The tests fail in the exact same way both with and without our fork's code.