-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage: genproto/googleapis/storage/v2 QueryWriteStatusResponse.GetCommittedSize undefined #4991
Comments
Related to googleapis/go-genproto#700. |
Hey, this was an intentional breaking change to a currently internal api. With the versions specified in the released go.mod I believe everything should work. The breaking change is fixed in #4987 with correct versions of genproto and the code being refactored. This code has not been released yet though. Are you using Go module to control versioning? If so could you share it? |
Don't we need a release of this repo to fix this? EDIT: I think it might require you to have any other dependency on |
I've managed to work around it by downgrading |
This PR is mostly being made so we have a version of storage that has a hard dependency on a newer version of genproto. This will help alleviate the internal gRPC breaking change that happened in the client last week. Updates: #4991
🤖 I have created a release \*beep\* \*boop\* --- ### [1.18.2](https://www.github.com/googleapis/google-cloud-go/compare/storage/v1.18.1...storage/v1.18.2) (2021-10-18) ### Bug Fixes * **storage:** upgrade genproto ([#4993](https://www.github.com/googleapis/google-cloud-go/issues/4993)) ([5ca462d](https://www.github.com/googleapis/google-cloud-go/commit/5ca462d99fe851b7cddfd70108798e2fa959bdfd)), refs [#4991](https://www.github.com/googleapis/google-cloud-go/issues/4991) This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
https://github.com/googleapis/google-cloud-go/releases/tag/storage/v1.18.2 has been released which should help manage dependencies and force a newer version of genproto to be pulled in. Thanks for reporting the issue and all of the input! |
I can confirm this fixed my issue, thanks for the quick response! |
Yep fixed our issue. This was our go.mod file yesterday:
|
googleapis/google-cloud-go#4991 Signed-off-by: Trung <trung.hoang@pricehubble.com>
Storage client does not compile. It uses "QueryWriteStatusResponse.GetCommittedSize" and "Object_CustomerEncryption.GetKeySha256" from "google.golang.org/genproto/googleapis/storage/v2" and they were removed "v0.0.0-20211015135405-485ec31e706e Oct 15, 2021", see https://pkg.go.dev/google.golang.org/genproto@v0.0.0-20211015135405-485ec31e706e/googleapis/storage/v2?tab=versions
Client
Storage
Environment
Linux
Go Environment
go version go1.17.1 linux/amd64
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/.../.cache/go-build"
GOENV="/home/.../.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/.../go/pkg/mod"
GONOPROXY="github.com/.../"
GONOSUMDB="github.com/.../"
GOOS="linux"
GOPATH="/home/.../go"
GOPRIVATE="github.com/.../*"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/.../tools/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/.../go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.17.1"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home.../go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2973016987=/tmp/go-build -gno-record-gcc-switches"
Code
e.g.
Expected behavior
Code compiles
Actual behavior
Additional context
https://pkg.go.dev/google.golang.org/genproto@v0.0.0-20211015135405-485ec31e706e/googleapis/storage/v2?tab=versions
Methods were removed "v0.0.0-20211015135405-485ec31e706e Oct 15, 2021"
They are available in "v0.0.0-20211013025323-ce878158c4d4 Oct 13, 2021"
The text was updated successfully, but these errors were encountered: