build(deps): bump github.com/golang/protobuf from 1.4.3 to 1.5.2
Bumps [github.com/golang/protobuf](https://github.com/golang/protobuf) from 1.4.3 to 1.5.2. - [Release notes](https://github.com/golang/protobuf/releases) - [Commits](https://github.com/golang/protobuf/compare/v1.4.3...v1.5.2) --- updated-dependencies: - dependency-name: github.com/golang/protobuf dependency-type: direct:production update-type: version-update:semver-minor ... Ondřej: I also fixed a deprecated call. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
d7bdd0efba
commit
3ccdf85295
71 changed files with 2585 additions and 1399 deletions
|
|
@ -9,7 +9,6 @@ import (
|
|||
"time"
|
||||
|
||||
cloudbuild "cloud.google.com/go/cloudbuild/apiv1"
|
||||
"github.com/golang/protobuf/ptypes"
|
||||
"google.golang.org/api/compute/v1"
|
||||
"google.golang.org/api/option"
|
||||
cloudbuildpb "google.golang.org/genproto/googleapis/devtools/cloudbuild/v1"
|
||||
|
|
@ -134,7 +133,7 @@ func (g *GCP) ComputeImageImport(ctx context.Context, bucket, object, imageName,
|
|||
|
||||
// Get the returned Build struct
|
||||
buildOpMetadata := &cloudbuildpb.BuildOperationMetadata{}
|
||||
if err := ptypes.UnmarshalAny(resp.Metadata, buildOpMetadata); err != nil {
|
||||
if err := resp.Metadata.UnmarshalTo(buildOpMetadata); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
imageBuild = buildOpMetadata.Build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue