From f91c6e98f1514bc17f79698833d7815171f25326 Mon Sep 17 00:00:00 2001 From: Alexander Voykov Date: Wed, 20 Mar 2019 16:48:08 +0300 Subject: [PATCH] Downgrade ugorji/go/codec from 1.1.2 to 1.1.1 Codec version has been changed in 1.1.2, but current tagged versions of etcd are compatible only with 1.1.1. Using viper/remote with incompatible versions of etcd and codec leads to error: panic: codecgen version mismatch: current: 8, need 10. Fixes #658 --- go.mod | 2 +- go.sum | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 86e801c..57750d7 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/spf13/jwalterweatherman v1.0.0 github.com/spf13/pflag v1.0.3 github.com/stretchr/testify v1.2.2 - github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8 // indirect + github.com/ugorji/go v1.1.1 // indirect github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77 golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9 // indirect golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a // indirect diff --git a/go.sum b/go.sum index 5c9fb7d..ab8609a 100644 --- a/go.sum +++ b/go.sum @@ -23,7 +23,8 @@ github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb6 github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= +github.com/ugorji/go v1.1.1 h1:gmervu+jDMvXTbcHQ0pd2wee85nEoE0BsVyEuzkfK8w= +github.com/ugorji/go v1.1.1/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a h1:1n5lsVfiQW3yfsRGu98756EH1YthsFqr/5mxHduZW2A=