[Build] mapstructure incompatibility between go-engines and go-engines-cat?
We have a new 4.1.91
internal build which is based on yesterday's develop
branches, in order to do early build testing of the next 4.2.0 release.
While testing them through Docker (in the reference-environments/canopsis-cat/docker
environment), I got the following error in che's output:
ERR git.canopsis.net/canopsis/go-engines/cmd/engine-che/main.go:63 > error="unable to load data sources: unable to open plugin: plugin.Open(\"/plugins/datasource/mongo\"): plugin was built with a different version of package github.com/mitchellh/mapstructure"
(this environment enables the mongo datasource plugin by default)
With some naive grep, it looks like go-engines-cat may have an out-of-sync go.sum
file, pulling an older, incompatible version of github.com/mitchellh/mapstructure
:
/git/go-engines$ git grep mapstructure go.*
go.mod: github.com/mitchellh/mapstructure v1.4.0
go.sum:github.com/mitchellh/mapstructure v1.4.0 h1:7ks8ZkOP5/ujthUsT07rNv+nkLXCQWKNHuwzOAesEks=
go.sum:github.com/mitchellh/mapstructure v1.4.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
/git/go-engines-cat$ git grep mapstructure go.*
go.mod: github.com/mitchellh/mapstructure v1.4.1
go.sum:github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
go.sum:github.com/mitchellh/mapstructure v1.4.0 h1:7ks8ZkOP5/ujthUsT07rNv+nkLXCQWKNHuwzOAesEks=
go.sum:github.com/mitchellh/mapstructure v1.4.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
go.sum:github.com/mitchellh/mapstructure v1.4.1 h1:CpVNEelQCZBooIPDn+AR3NpivK/TIKU8bDxdASFVQag=
go.sum:github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
@apavlov: Could someone have a look at this? It's also possible that our build system has a problem somewhere, but I think it's just a go.mod sync problem.
Thanks!