Skip to content

feat: upgrade Cosmos SDK to v0.47 #8272

feat: upgrade Cosmos SDK to v0.47

feat: upgrade Cosmos SDK to v0.47 #8272

Triggered via pull request February 9, 2024 14:40
Status Failure
Total duration 3m 48s
Artifacts

lint.yml

on: pull_request
buf-lint
9s
buf-lint
protolint
9s
protolint
Matrix: golangci
Fit to window
Zoom out
Zoom in

Annotations

49 errors and 7 warnings
golangci (x/data): x/data/client/tx.go#L227
undefined: data (typecheck)
golangci (x/data): x/data/client/util.go#L29
undefined: data (typecheck)
golangci (x/data): x/data/client/util.go#L37
undefined: data (typecheck)
golangci (x/data): x/data/simulation/genesis.go#L29
cannot use db (variable of type *"github.com/cometbft/cometbft-db".MemDB) as kv.Store value in struct literal: *"github.com/cometbft/cometbft-db".MemDB does not implement kv.Store (wrong type for method Iterator)
golangci (x/data): x/data/query.pb.go#L2830
m.Timestamp.MarshalToSizedBuffer undefined (type *timestamppb.Timestamp has no field or method MarshalToSizedBuffer) (typecheck)
golangci (x/data): x/data/query.pb.go#L2884
m.Timestamp.MarshalToSizedBuffer undefined (type *timestamppb.Timestamp has no field or method MarshalToSizedBuffer) (typecheck)
golangci (x/data): x/data/query.pb.go#L3324
m.Timestamp.Size undefined (type *timestamppb.Timestamp has no field or method Size) (typecheck)
golangci (x/data): x/data/query.pb.go#L3345
m.Timestamp.Size undefined (type *timestamppb.Timestamp has no field or method Size) (typecheck)
golangci (x/data): x/data/query.pb.go#L5773
m.Timestamp.Unmarshal undefined (type *timestamppb.Timestamp has no field or method Unmarshal) (typecheck)
golangci (x/data): x/data/query.pb.go#L5923
m.Timestamp.Unmarshal undefined (type *timestamppb.Timestamp has no field or method Unmarshal) (typecheck)
golangci (types): types/testutil/fixture/conn.go#L1
: # github.com/regen-network/regen-ledger/types/v2/testutil/fixture
golangci (types)
undefined: sdk.Route
golangci (types)
undefined: sdk.Route
golangci (types)
undefined: sdk.Querier
golangci (types)
module.RegisterInterfaces undefined (type interface{} has no field or method RegisterInterfaces)
golangci (types)
module.RegisterServices undefined (type interface{} has no field or method RegisterServices) (typecheck)
golangci (types): types/ormstore/db.go#L1
: # github.com/regen-network/regen-ledger/types/v2/ormstore [github.com/regen-network/regen-ledger/types/v2/ormstore.test]
golangci (types)
cannot use backEndResolver (variable of type func(_ "cosmossdk.io/api/cosmos/orm/v1alpha1".StorageType) (ormtable.BackendResolver, error)) as func("github.com/cosmos/cosmos-sdk/api/cosmos/orm/v1alpha1".StorageType) (ormtable.BackendResolver, error) value in assignment
golangci (types)
cannot use desc (variable of type *"cosmossdk.io/api/cosmos/orm/v1alpha1".ModuleSchemaDescriptor) as *"github.com/cosmos/cosmos-sdk/api/cosmos/orm/v1alpha1".ModuleSchemaDescriptor value in argument to ormdb.NewModuleDB (typecheck)
golangci (types): types/math/math.go#L5
File is not `goimports`-ed (goimports)
golangci (x/ecocredit): x/ecocredit/simulation/utils/utils.go#L109
undefined: ecocredit (typecheck)
golangci (x/ecocredit): x/ecocredit/simulation/utils/utils.go#L137
undefined: ecocredit (typecheck)
golangci (x/ecocredit): x/ecocredit/simulation/utils/utils.go#L79
undefined: ecocredit (typecheck)
golangci (x/ecocredit): x/ecocredit/client/testsuite/suite.go#L111
undefined: types (typecheck)
golangci (x/ecocredit): x/ecocredit/client/testsuite/suite.go#L114
undefined: types (typecheck)
golangci (x/ecocredit): x/ecocredit/client/testsuite/suite.go#L198
cannot use db (variable of type *"github.com/cometbft/cometbft-db".MemDB) as kv.Store value in struct literal: *"github.com/cometbft/cometbft-db".MemDB does not implement kv.Store (wrong type for method Iterator)
golangci (x/ecocredit): x/ecocredit/client/testsuite/suite.go#L199
cannot use db (variable of type *"github.com/cometbft/cometbft-db".MemDB) as kv.Store value in struct literal: *"github.com/cometbft/cometbft-db".MemDB does not implement kv.Store (wrong type for method Iterator)
golangci (x/ecocredit): x/ecocredit/marketplace/simulation/msg_add_allowed_denom.go#L9
string literal not terminated (typecheck)
golangci (x/ecocredit): x/ecocredit/marketplace/simulation/msg_cancel_sell_order.go#L7
string literal not terminated (typecheck)
golangci (x/ecocredit): x/ecocredit/marketplace/simulation/msg_remove_allowed_denom.go#L8
string literal not terminated (typecheck)
golangci (x/intertx): x/intertx/module/ibc_module.go#L15
could not import github.com/regen-network/regen-ledger/x/intertx/keeper (-: # github.com/regen-network/regen-ledger/x/intertx/keeper
golangci (x/intertx)
cannot use []sdk.Msg{…} (value of type []"github.com/cosmos/cosmos-sdk/types".Msg) as []"github.com/cosmos/gogoproto/proto".Message value in argument to icatypes.SerializeCosmosTx) (typecheck)
golangci (x/intertx): x/intertx/module/module.go#L94
undefined: sdk.Route (typecheck)
golangci (x/intertx): x/intertx/module/module.go#L104
undefined: sdk.Querier (typecheck)
golangci (x/intertx): x/intertx/module/module.go#L95
undefined: sdk.NewRoute (typecheck)
golangci (x/intertx): x/intertx/keeper/expected_keepers.go#L1
: # github.com/regen-network/regen-ledger/x/intertx/keeper [github.com/regen-network/regen-ledger/x/intertx/keeper.test]
golangci (x/intertx)
cannot use []sdk.Msg{…} (value of type []"github.com/cosmos/cosmos-sdk/types".Msg) as []"github.com/cosmos/gogoproto/proto".Message value in argument to icatypes.SerializeCosmosTx
golangci (x/intertx)
cannot use []sdk.Msg{…} (value of type []"github.com/cosmos/cosmos-sdk/types".Msg) as []"github.com/cosmos/gogoproto/proto".Message value in argument to icatypes.SerializeCosmosTx (typecheck)
golangci (x/intertx)
issues found
golangci (app): app/upgrades/v5_0/upgrade.go#L30
undefined: data (typecheck)
golangci (app): app/upgrades/v5_0/upgrade.go#L37
mm.Modules[icatypes.ModuleName].ConsensusVersion undefined (type interface{} has no field or method ConsensusVersion) (typecheck)
golangci (app): app/app.go#L547
missing ',' before newline in argument list (typecheck)
golangci (app): app/app.go#L627
missing ',' before newline in argument list (typecheck)
golangci (app): app/app.go#L723
missing ',' in argument list (typecheck)
golangci (app): app/client/cli/root.go#L56
undefined: flags.BroadcastBlock (typecheck)
golangci (app): app/client/cli/root.go#L92
undefined: server.RosettaCommand (typecheck)
golangci (app): app/client/cli/root.go#L164
not enough arguments in call to genutilcli.CollectGenTxsCmd
golangci (app): app/client/cli/root.go#L174
cannot use createRegenappAndExport (value of type func(logger "github.com/cometbft/cometbft/libs/log".Logger, db "github.com/cometbft/cometbft-db".DB, traceStore "io".Writer, height int64, forZeroHeight bool, jailAllowedAddrs []string, appOpts "github.com/cosmos/cosmos-sdk/server/types".AppOptions) ("github.com/cosmos/cosmos-sdk/server/types".ExportedApp, error)) as "github.com/cosmos/cosmos-sdk/server/types".AppExporter value in argument to server.AddCommands (typecheck)
golangci (app): app/client/cli/testnet.go#L85
undefined: flags.FlagKeyAlgorithm (typecheck)
buf-lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: technote-space/get-diff-action@v6. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
protolint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: technote-space/get-diff-action@v6. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
golangci (x/data)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: technote-space/get-diff-action@v6. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
golangci (types)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: technote-space/get-diff-action@v6. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
golangci (x/ecocredit)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: technote-space/get-diff-action@v6. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
golangci (x/intertx)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: technote-space/get-diff-action@v6. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
golangci (app)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: technote-space/get-diff-action@v6. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.