berachain / beacon-kit

A modular framework for building EVM consensus clients ⛵️✨
https://berachain.com
Other
170 stars 122 forks source link

Error When Running Local Development Network #2025

Open smallfu6 opened 1 month ago

smallfu6 commented 1 month ago

I'm encountering an error while trying to run a local development network. The following steps were taken:

make start

Error Message:

make[1]: Entering directory '/home/web3/beacon-kit'                                                                                                
mkdir -p /home/web3/beacon-kit/build/bin/                                                                                                          
Building beacond/cmd 
......                                                                                                                              
types.go:24:2: cosmossdk.io/store@v1.1.1-0.20240418092142-896cdf1971bc: invalid version: unknown revision 896cdf1971bc                                   
../../mod/errors/mod.go:26:2: cosmossdk.io/store@v1.1.1-0.20240418092142-896cdf1971bc: invalid version: unknown revision 896cdf1971bc    
......
../../mod/consensus/pkg/cometbft/cli/commands.go:38:2: cosmossdk.io/store@v1.1.1-0.20240418092142-896cdf1971bc: invalid version: unknown revision 896cdf1971bc
../../mod/consensus/pkg/cometbft/cli/commands.go:42:2: cosmossdk.io/store@v1.1.1-0.20240418092142-896cdf1971bc: invalid version: unknown revision 896cdf1971bc
../../mod/consensus/pkg/cometbft/cli/commands.go:43:2: cosmossdk.io/store@v1.1.1-0.20240418092142-896cdf1971bc: invalid version: unknown revision 896cdf1971bc
../../mod/consensus/pkg/cometbft/cli/commands.go:46:2: cosmossdk.io/store@v1.1.1-0.20240418092142-896cdf1971bc: invalid version: unknown revision 896cdf1971bc
../../mod/cli/pkg/commands/setup.go:37:2: cosmossdk.io/store@v1.1.1-0.20240418092142-896cdf1971bc: invalid version: unknown revision 896cdf1971bc
main.go:32:2: cosmossdk.io/store@v1.1.1-0.20240418092142-896cdf1971bc: invalid version: unknown revision 896cdf1971bc
make[1]: *** [build/scripts/build.mk:90: build] Error 1
make[1]: Leaving directory '/home/web3/beacon-kit'
make: *** [build/scripts/testing.mk:34: start] Error 2

Environment:

OS: Ubuntu 20.04.6 LTS Golang: 1.23.0 Docker: 24.0.7

Do I need to reinstall cosmossdk? how to fix this error?

metter0 commented 1 month ago

1) Verify the go.mod file of your project to check the expected version of the cosmossdk.io/store module. Look for a line like this:

  1. Delete go.mod and go.sum.
  2. Reinitialize the Go module with:
    • go mod init