-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
I used the etcd/embed cue panic: codecgen version mismatch: current: 8, need 10. #10325
Comments
having the same problem, can anyone help? |
@yeyongyong @maps could you please test #10337 |
@hexfusion superb! it works |
How can I use this change in my project, while using a go.mod file? |
I still see this issue using the latest release, I am using go modules in go 1.11 is there anything specific I need to do to resolve this? |
exact error is here: 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]: |
When can we expect a release which contains the fix to get cut? @reefbarman you can vendor in the dependency at the fix's merge commit to pick up the changes. |
Seeing the same issue using the latest version |
is the latest version containing the fix for this? |
@mnajork-palantir how to do |
@lifangmoler what are you using as your dependency management tool? Here's the commit containing the fix: f3fbedc |
@mnajork-palantir I am using |
trying this |
Played with this a little and I found if you are using go mod for your project and running into issues with "codecgen version mismatch: current: 8, need 10. Re-generate file:" try:
go.mod module github.com/hexfusion/stuffz
require (
github.com/coreos/etcd v3.3.12+incompatible
[snip]
github.com/ugorji/go v1.1.1 // indirect
) Curious if this helps folks. |
@hexfusion so I have gotten further with the suggestion change but then received this
Will dig to see if I can resolve this but I am not specifically requiring github.com/ugorji/go/codec |
okay I found it was github.com/spf13/viper also requiring go/codec and I forked this and updated it to use the same versions of etcd and go/codec and it built. But ideally etcd would support go mod so things can be versioned correctly EDIT: Spoke too soon including the forked viper in another project then caused it to fail again with the above issue and this time I can't find the dependency that is importing github.com/ugorji/go/codec, so unable to resolve the issue |
@hexfusion It is working for me after i tried |
Fixes problem with panic: codecgen version mismatch: current: 8, need 10. Refer to: etcd-io/etcd#10325
Still have same problem |
github.com/coreos/etcd v3.3.12 |
Still have same problem
|
Facing the same issue,
|
Same problem, this appears to be okay:
|
Bcmills' solution resolved this for me.
|
this solution worked for me. |
* add `README` for the `simple_cli` example * flagset checksum: add a mechanism to checksum the whole flagset * fix typo in watcher * add copyright notices * add status endpoint for debuging purposes * notifiers: add functions triggered on successful dyn flag sets * address govet and golint * fixup test * Change travis file. * fixup travis * fixup travis 2 * bring back the workaround for etcd-io/etcd/issues/3209 * increase etcd ctx timeouts on travis * fix up travis * endpoint: add checksums for static/dynamic * Update README.md * Update README.md * Update README.md * Update README.md * monitoring: add a Prometheus collector for flagset checksums * monitoring: add a readme mention * Update README.md * Update README.md * Fix a few typos and gofmt issues * Update README.md * MarkFlagDynamic is now public * proto3 flag support added * Add notes about DynProto3 * Add DynStringSet. * Change DynStringSet to `map[string]struct{}` for the set type. * Add Contains convenience method to DynStringSet. * Fix spurious leading spaces in output of DynStringSetValue.String(). The array is allocated with the same size as the map, instead of having the capacity of the map but size zero. This results in unintended leading empty string elements in the array. * Update README.md * kubernetes config map, first draft * updater test and READMIES * testdata * fixup travis * Update README.md * Update README.md * Update README.md * Update README.md * Make travis run in a container * travis fixup and gitingore * test coverage * Update README.md * add self returns * add file-read flags * Add support for go modules. - create go.sum - do not use .. in filenames in this repo due to golang/go#27299 Testing strategy: I almost successfully ran `test_all.sh` and found a data race, but I don't think it's related to this PR: ``` WARNING: DATA RACE Read at 0x00c00016cac0 by goroutine 29: github.com/spf13/pflag.(*FlagSet).VisitAll() /home/stefan/usr/go/main/pkg/mod/github.com/spf13/[email protected]/flag.go:277 +0x14a github.com/mwitkow/go-flagz.ChecksumFlagSet() /home/stefan/Projects/go-flagz/checksum.go:15 +0xc8 github.com/mwitkow/go-flagz/monitoring.(*flagSetCollector).Collect() /home/stefan/Projects/go-flagz/monitoring/collector.go:57 +0x2a2 github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1() /home/stefan/usr/go/main/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:434 +0x1eb Previous write at 0x00c00016cac0 by goroutine 28: github.com/spf13/pflag.sortFlags() /home/stefan/usr/go/main/pkg/mod/github.com/spf13/[email protected]/flag.go:204 +0x2f2 github.com/spf13/pflag.(*FlagSet).VisitAll() /home/stefan/usr/go/main/pkg/mod/github.com/spf13/[email protected]/flag.go:270 +0x1b0 github.com/mwitkow/go-flagz.ChecksumFlagSet() /home/stefan/Projects/go-flagz/checksum.go:15 +0xc8 github.com/mwitkow/go-flagz/monitoring.(*flagSetCollector).Collect() /home/stefan/Projects/go-flagz/monitoring/collector.go:55 +0xe9 github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1() /home/stefan/usr/go/main/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:434 +0x1eb ``` * Replace package author name, fixing codecgen version mismatch (etcd-io/etcd#10325 (comment)) * add circle config * Upgrade Prometheus client from v0.9.2 -> v0.9.3 to fix data race condition * Fixed compile error but the data race is still there... * Fixing test race condition, albeit heavy handedly Co-authored-by: Michal Witkowski <[email protected]> Co-authored-by: Jonathan Boulle <[email protected]> Co-authored-by: Mark Nevill <[email protected]> Co-authored-by: Stefan Sakalik <[email protected]> Co-authored-by: Janos Dobronszki <[email protected]> Co-authored-by: Thom May <[email protected]>
* Add support for go modules. - create go.sum - do not use .. in filenames in this repo due to golang/go#27299 Testing strategy: I almost successfully ran `test_all.sh` and found a data race, but I don't think it's related to this PR: ``` WARNING: DATA RACE Read at 0x00c00016cac0 by goroutine 29: github.com/spf13/pflag.(*FlagSet).VisitAll() /home/stefan/usr/go/main/pkg/mod/github.com/spf13/[email protected]/flag.go:277 +0x14a github.com/mwitkow/go-flagz.ChecksumFlagSet() /home/stefan/Projects/go-flagz/checksum.go:15 +0xc8 github.com/mwitkow/go-flagz/monitoring.(*flagSetCollector).Collect() /home/stefan/Projects/go-flagz/monitoring/collector.go:57 +0x2a2 github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1() /home/stefan/usr/go/main/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:434 +0x1eb Previous write at 0x00c00016cac0 by goroutine 28: github.com/spf13/pflag.sortFlags() /home/stefan/usr/go/main/pkg/mod/github.com/spf13/[email protected]/flag.go:204 +0x2f2 github.com/spf13/pflag.(*FlagSet).VisitAll() /home/stefan/usr/go/main/pkg/mod/github.com/spf13/[email protected]/flag.go:270 +0x1b0 github.com/mwitkow/go-flagz.ChecksumFlagSet() /home/stefan/Projects/go-flagz/checksum.go:15 +0xc8 github.com/mwitkow/go-flagz/monitoring.(*flagSetCollector).Collect() /home/stefan/Projects/go-flagz/monitoring/collector.go:55 +0xe9 github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1() /home/stefan/usr/go/main/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:434 +0x1eb ``` * Replace package author name, fixing codecgen version mismatch (etcd-io/etcd#10325 (comment)) * add circle config * Upgrade Prometheus client from v0.9.2 -> v0.9.3 to fix data race condition * Fixed compile error but the data race is still there... * Fixing test race condition, albeit heavy handedly Co-authored-by: Stefan Sakalik <[email protected]> Co-authored-by: Janos Dobronszki <[email protected]> Co-authored-by: Thom May <[email protected]>
panic: codecgen version mismatch: current: 8, need 10. Re-generate file: /Users/yeyongyong/go/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go
goroutine 1 [running]:
github.com/coreos/etcd/client.init.0()
/Users/yeyongyong/go/pkg/mod/github.com/coreos/[email protected]+incompatible/client/keys.generated.go:45 +0x104
The text was updated successfully, but these errors were encountered: