Viper: panic: codecgen version mismatch: current: 8, need 10 when trying to use remote k/v store

Created on 5 Feb 2019  路  2Comments  路  Source: spf13/viper

I get the below error when trying to add a remote provider, it only happens when I import the remote package. I am on go 1.11 and using go modules

panic: codecgen version mismatch: current: 8, need 10. Re-generate file: C:/Go/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go

goroutine 1 [running]:
github.com/coreos/etcd/client.init.0()
C:/Go/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:45 +0x10b
exit status 2

Most helpful comment

rm the keys.generated.go file. It will be auto regenerated.

All 2 comments

rm the keys.generated.go file. It will be auto regenerated.

But this doesn't seem to be a targeted solution.

Was this page helpful?
0 / 5 - 0 ratings