doumo0206 2018-04-24 01:04
浏览 86

Go BigQuery软件包安装错误(Go版本1.10.1)

For some reason, I get the following errors when installing the cloud.google.com/go/bigquery package. I'm a Go noob, so I assume I'm doing something wrong. I was wondering if anyone was able to replicate, or could point me in the direction about how to resolve these errors? For example, is using a bool type in place of a *bool legal in prior versions of Go? Perhaps this is a bug in the Google package?

$ go get -u cloud.google.com/go/bigquery

# cloud.google.com/go/bigquery
gocode/src/cloud.google.com/go/bigquery/query.go:166:22: cannot use true (type bool) as type *bool in assignment
gocode/src/cloud.google.com/go/bigquery/query.go:168:22: cannot use false (type bool) as type *bool in assignment
gocode/src/cloud.google.com/go/bigquery/query.go:199:15: cannot use qq.UseLegacySql (type *bool) as type bool in field value
gocode/src/cloud.google.com/go/bigquery/query.go:200:22: invalid operation: ! *bool
  • 写回答

1条回答 默认 最新

  • douba1617 2018-04-24 20:42
    关注

    Looks like someone pushed a broken change to the Go BigQuery client last night.

    https://github.com/GoogleCloudPlatform/google-cloud-go/commit/c718c274c122d2ca258bb8f93830d820cbb2160d

    Should be fixed now. However, if you're using dep for Go dependency management, it looks like you'll need to set the revision like so in Gopkg.toml (if you are trying to use v0.21.0 of the GoogleCloudPlatform/google-cloud-go client):

    [[constraint]]
      name = "cloud.google.com/go"
      revision = "c718c274c122d2ca258bb8f93830d820cbb2160d"
    

    Sad times.

    评论

报告相同问题?

悬赏问题

  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试