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

使用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.

  • 写回答

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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 学习Python如何找兼职
  • ¥15 python结合Matlab仿真忆阻器
  • ¥35 有人会注册whatsaop协议号吗?
  • ¥15 lead dbs 无法导入影像数据
  • ¥15 多目标MPA算法优化编程实现
  • ¥15 反激PWM控制芯片调研
  • ¥15 Python for loop减少运行时间
  • ¥15 fluent模拟物质浓度udf
  • ¥15 Collection contains no element matching the predicate
  • ¥20 冻品电商平台的搜索是怎么实现的