influx-cli icon indicating copy to clipboard operation
influx-cli copied to clipboard

influx-cli is broken with latest changes

Open gesquive opened this issue 10 years ago • 4 comments

As of the InfluxDB 44d4346 change, this tool is now broken. Installing or trying to run the tool results in the following:

./influx-cli.go:51: undefined: client.ClientConfig
./influx-cli.go:57: undefined: client.Series
./influx-cli.go:176: undefined: client.Series
./influx-cli.go:262: undefined: client.ClientConfig
./influx-cli.go:273: multiple-value cl.Ping() in single-value context
./influx-cli.go:518: cl.DisableCompression undefined (type *client.Client has no field or method DisableCompression)
./influx-cli.go:548: cl.CreateClusterAdmin undefined (type *client.Client has no field or method CreateClusterAdmin)
./influx-cli.go:562: cl.UpdateClusterAdmin undefined (type *client.Client has no field or method UpdateClusterAdmin)
./influx-cli.go:574: cl.GetClusterAdminList undefined (type *client.Client has no field or method GetClusterAdminList)
./influx-cli.go:592: cl.GetDatabaseList undefined (type *client.Client has no field or method GetDatabaseList)
./influx-cli.go:592: too many errors

I was able to work around it by running the following at the command line:

cd $GOPATH/src/github.com/influxdb/influxdb
git checkout v0.8.8

Effectively this just changes the version of the InfluxDB library to v0.8.8. But a more permanent fix would be necessary.

gesquive avatar Jan 29 '15 18:01 gesquive

+1

ChristianKniep avatar Feb 18 '15 10:02 ChristianKniep

the fix is simple, we have to vendor in that library at the last good 0.8 version i'm on holiday, but if anyone wants to submit a PR that uses godep or maybe https://github.com/mjibson/party and verify that it works, i'll merge it

Dieterbe avatar Feb 18 '15 18:02 Dieterbe

This is still broken @Dieterbe. You back from vacation yet?

krunkosaurus avatar Mar 19 '15 18:03 krunkosaurus

+1

andrew@andrew-office:~$ go get github.com/Dieterbe/influx-cli
# github.com/Dieterbe/influx-cli
go/src/github.com/Dieterbe/influx-cli/influx-cli.go:51: undefined: client.ClientConfig
go/src/github.com/Dieterbe/influx-cli/influx-cli.go:57: undefined: client.Series
go/src/github.com/Dieterbe/influx-cli/influx-cli.go:176: undefined: client.Series
go/src/github.com/Dieterbe/influx-cli/influx-cli.go:262: undefined: client.ClientConfig
go/src/github.com/Dieterbe/influx-cli/influx-cli.go:273: multiple-value cl.Ping() in single-value context
go/src/github.com/Dieterbe/influx-cli/influx-cli.go:518: cl.DisableCompression undefined (type *client.Client has no field or method DisableCompression)
go/src/github.com/Dieterbe/influx-cli/influx-cli.go:548: cl.CreateClusterAdmin undefined (type *client.Client has no field or method CreateClusterAdmin)
go/src/github.com/Dieterbe/influx-cli/influx-cli.go:562: cl.UpdateClusterAdmin undefined (type *client.Client has no field or method UpdateClusterAdmin)
go/src/github.com/Dieterbe/influx-cli/influx-cli.go:574: cl.GetClusterAdminList undefined (type *client.Client has no field or method GetClusterAdminList)
go/src/github.com/Dieterbe/influx-cli/influx-cli.go:592: cl.GetDatabaseList undefined (type *client.Client has no field or method GetDatabaseList)
go/src/github.com/Dieterbe/influx-cli/influx-cli.go:592: too many errors

ajohnstone avatar Jun 08 '15 10:06 ajohnstone