influxdb: golang influx client missing

In golang we used the “github.com/influxdata/influxdb/client/v2” package to have a influx client in golang… It seems that the client is now missing from the repository…

No client, no doc, no info on how to transition…

go get github.com/influxdata/influxdb/client/v2
package github.com/influxdata/influxdb/client/v2: cannot find package "github.com/influxdata/influxdb/client/v2" in any of:
/usr/local/go/src/github.com/influxdata/influxdb/client/v2 (from $GOROOT)
/go/src/github.com/influxdata/influxdb/client/v2 (from $GOPATH)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 15
  • Comments: 22 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Gave it the weird name so that it would be obvious it’s for v1. We have a new API for v2 and I want to make sure that the other name is free for where we’re going. Glad it worked!

Ok, I put something here that has fixed up references. Tests pass so I think it should be good. Let me know if this works for you: https://github.com/influxdata/influxdb1-client

@pauldix It seems like the following does not work inside go projects with go modules enabled, since the repo has no v2 branch or tag:

go get github.com/influxdata/influxdb1-client/v2
go: finding github.com/influxdata/influxdb1-client/v2 latest
go: github.com/influxdata/influxdb1-client/v2@v2.0.0-20190402204710-8ff2fc3824fc: missing github.com/influxdata/influxdb1-client/go.mod and .../v2/go.mod at revision 8ff2fc3824fc
go: error loading module requirements

Even specifying the master branch does not work:

go get github.com/influxdata/influxdb1-client/v2@master
go: finding github.com/influxdata/influxdb1-client/v2 master
go: github.com/influxdata/influxdb1-client/v2@v2.0.0-20190402204710-8ff2fc3824fc: missing github.com/influxdata/influxdb1-client/go.mod and .../v2/go.mod at revision 8ff2fc3824fc
go: error loading module requirements

Please take a look at: https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher

Ok, I’m working on pulling client into its own repo and fixing up all the imports in to so that everything is self contained. More very soon…

The 2.0 client will live in its own repository, which should help with some of this. Sorry for the inconvenience everyone, we tried to let people know, but it’s hard to get the word out.