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
- Fixed the InfluxDB client issue https://github.com/influxdata/influxdb/issues/11035 — committed to wdias/adapter-scalar by gihankarunarathne 5 years ago
- monitoring: change influxdb import path https://github.com/influxdata/influxdb/issues/11035 — committed to theplant/appkit by tnclong 5 years ago
- forced client v1 https://github.com/influxdata/influxdb/issues/11035 — committed to dandriushchenko/go-metrics-influxdb by dandriushchenko 5 years ago
- moved to influxdb1-client https://github.com/influxdata/influxdb/issues/11035 https://www.influxdata.com/blog/influxdb-master-branch-to-switch-to-2-0-on-jan-11/ — committed to dandriushchenko/go-runtime-metrics by dandriushchenko 5 years ago
- Wipe out workspace in preparation for v2 merge "Knock knock." "Who's there?" "InfluxDB Veet." ... — committed to influxdata/influxdb by mark-rushakoff 5 years ago
- moved to influxdb1-client influxdata/influxdb#11035 https://www.influxdata.com/blog/influxdb-master-branch-to-switch-to-2-0-on-jan-11/ — committed to Cazzar/AussieBB-Usage-Influx by Cazzar 5 years ago
- Fix import path Required because a dependency has moved. Original: github.com/influxdata/influxdb/client/v2 New: github.com/influxdata/influxdb1-client/v2 More information: influxdata/influxdb... — committed to Elbandi/mongofluxd by Elbandi 5 years ago
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:
Even specifying the master branch does not work:
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.