Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation issue #75

Closed
tkaagent opened this issue Apr 20, 2020 · 1 comment
Closed

compilation issue #75

tkaagent opened this issue Apr 20, 2020 · 1 comment

Comments

@tkaagent
Copy link

To accomodate new client I did:
go get github.com/influxdata/influxdb1-client/v2 \

then, declaration section of your Go file, paste the following: import "github.com/influxdata/influxdb1-client/v2".

I am getting this error once trying to compile:

`tkaagent@ubuntu1:~/jtimon$ sudo go build

_/home/tkaagent/jtimon

./subscribe_cisco_iosxr.go:198:33: cannot use conn (type *"google.golang.org/grpc".ClientConn) as type *"github.com/nileshsimaria/jtimon/vendor/google.golang.org/grpc".ClientConn in argument to IOSXRExtensibleManagabilityService.NewGRPCConfigOperClient
./subscribe_juniper_junos.go:105:41: cannot use conn (type *"google.golang.org/grpc".ClientConn) as type *"github.com/nileshsimaria/jtimon/vendor/google.golang.org/grpc".ClientConn in argument to "github.com/nileshsimaria/jtimon/telemetry".NewOpenConfigTelemetryClient
./subscribe_juniper_junos.go:228:32: cannot use conn (type *"google.golang.org/grpc".ClientConn) as type *"github.com/nileshsimaria/jtimon/vendor/google.golang.org/grpc".ClientConn in argument to authentication.NewLoginClient
tkaagent@ubuntu1:~/jtimon$`

@nileshsimaria
Copy link
Owner

use go build with -mod=vendor to solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants