duanmajing9332
2016-12-23 07:54
浏览 96
已采纳

使用golang / protobuf时在数据存储区中生成错误

I have an application which uses both bigquery and cloud datastore APIs. I use glide for go package management. I keep seeing build errors with either bigquery or datastore depending upon the version of golang/protobuf that I use. I am not able to find a version that is compatible with both bigquery and datastore. Either one of the packages keeps failing to build.

Build errors in datastore while using golang/protobuf version 7cc19b78d562895b13596ddce7aafb59dd789318:

../../vendor/google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go:33: undefined: proto.ProtoPackageIsVersion2 ../../vendor/google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go:41: unknown proto.ExtensionDesc field 'Filename' in 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 Build errors in bigquery while using golang/protobuf version 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

Opened an issue here - https://github.com/GoogleCloudPlatform/google-cloud-go/issues/475. Any pointers would be appreciated.

图片转代码服务由CSDN问答提供 功能建议

我有一个同时使用bigquery和Cloud数据存储区API的应用程序。 我使用glide进行包裹管理。 根据我使用的golang / protobuf的版本,我不断看到bigquery或datastore的构建错误。 我找不到与bigquery和数据存储兼容的版本。 这两个软件包中的任何一个都无法继续构建。 ./../vendor/google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go:33: 未定义:proto.ProtoPackageIsVersion2 ../../vendor/google.golang。 org / genproto / googleapis / api / annotations / annotations.pb.go:41: 结构文字中未知的proto.ExtensionDesc字段“文件名” ../../vendor/google.golang.org/genproto/googleapis /api/annotations/annotations.pb.go:48: 未定义:proto.RegisterFile ../../vendor/google.golang.org/genproto/googleapis/api/annotations/http.pb.go: 540: 未定义:使用 golang / protobuf版本8ee79997227bf9b34611aee7946ae64735e6fd93:

../../ vendor / cloud.google.com / go / bigquery / params.go:55:未定义: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:56 :未定义: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:57:未定义: bigquery.QueryParameterType ../../vendor /cloud.google.com/go/bigquery/params.go:58:未定义: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:59: 未定义: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:60:未定义: bigquery.QueryParameterType ../../vendor/ cloud.google.com/go/bigquery/params.go:61:未定义: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:94:未定义 : bigquery.QueryParameter ../../vendor/cloud.google.com/go/bigquery/params.go:110:未定义: bigquery.QueryParameterType ../../vendor/cloud .google.com / go / bigquery / params.go:178:未定义: bigquery.QueryParameter

在此处打开了一个问题- http S://github.com/GoogleCloudPlatform/google-cloud-go/issues/475 。 任何指针将不胜感激。

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • duan4739 2016-12-23 13:59
    已采纳

    You did the right thing by filing a bug, so hopefully that will be resolved soon. The most recent version of the cloud APIs adds support for query parameters but based on the error that you are seeing, one of the libraries was not updated properly.

    已采纳该答案
    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题