我有一个使用bigquery和cloud数据存储区API的应用程序。我使用滑动来进行包裹管理。根据我使用的golang / protobuf的版本,我一直看到bigquery或datastore的构建错误。我找不到兼容bigquery和datastore的版本。任何一个软件包都无法构建。
使用golang / protobuf版本7cc19b78d562895b13596ddce7aafb59dd789318时在数据存储区中构建错误:
../../供应商/ google.golang.org / genproto / googleapis / API /注解/ annotations.pb.go:33: undefined:proto.ProtoPackageIsVersion2 ../../vendor/google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go:41: 未知的proto.ExtensionDesc字段'文件名'在struct literal中 ../../vendor/google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go:48: undefined:proto.RegisterFile ../../vendor/google.golang.org/genproto/googleapis/api/annotations/http.pb.go:540: undefined:proto.RegisterFile使用时在bigquery中构建错误 golang / protobuf版本8ee79997227bf9b34611aee7946ae64735e6fd93:
../../ vendor / cloud.google.com / go / bigquery / params.go:55:undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:56:undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:57:undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:58:undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:59:undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:60:undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:61:undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:94:undefined: bigquery.QueryParameter ../../vendor/cloud.google.com/go/bigquery/params.go:110:undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:178:undefined: bigquery.QueryParameter
在这里打开了一个问题 - https://github.com/GoogleCloudPlatform/google-cloud-go/issues/475。任何指针将不胜感激。
答案 0 :(得分:2)
你通过提交一个错误做了正确的事,所以希望很快就能解决。最新版本的云API添加了对query parameters的支持,但根据您看到的错误,其中一个库未正确更新。