Repo github.com/CosmWasm/wasmd at version v0.27.0 uses replace directive to change dependency path from github.com/99designs/keyring to github.com/cosmos/keyring.
According to Go Modules wikis, replace directives in modules other than the main module are ignored when building the main module.
It means such replace usage in dependency's go.mod cannot be inherited when building main module. And it turns out that fetchai/fetchd indirectly relies on 99designs/keyring@v1.1.6, which is different from the new dependency path CosmWasm/wasmd needed.
Dependency line:
github.com/fetchai/fetchd --> github.com/CosmWasm/wasmd --> github.com/99designs/keyring
github.com/CosmWasm/wasmd v0.27.0 --> github.com/cosmos/keyring ef00f8a
https://github.com/CosmWasm/wasmd/blob/v0.27.0/go.mod#L127
Background
Repo
github.com/CosmWasm/wasmd
at versionv0.27.0
uses replace directive to change dependency path fromgithub.com/99designs/keyring
togithub.com/cosmos/keyring
.According to Go Modules wikis,
replace
directives in modules other than themain module
are ignored when building the main module. It means such replace usage in dependency's go.mod cannot be inherited when building main module. And it turns out thatfetchai/fetchd
indirectly relies on99designs/keyring@v1.1.6
, which is different from the new dependency pathCosmWasm/wasmd
needed.2. Add the same replace rule to your go.mod