0glabs / 0g-chain

The First Modular AI Chain
Apache License 2.0
28 stars 37 forks source link

issue with cosmossdk.io/math@v1.0.0-beta.6.0. invalid version #21

Closed 0xN2 closed 2 months ago

0xN2 commented 3 months ago

I have this error when try to install the node.

step= git clone -b v0.1.0 https://github.com/0glabs/0g-chain.git ./0g-chain/networks/testnet/install.sh source .profile

Error =``` ./install.sh go version go1.22.3 linux/amd64 jq-1.6 GNU Make 4.3 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

go install -mod=readonly -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=0g-chain -X github.com/cosmos/cosmos-sdk/version.AppName=0g-chain -X github.com/cosmos/cosmos-sdk/version.Version=63c16892 -X github.com/cosmos/cosmos-sdk/version.Commit=63c16892243de6718383bcdbd48fbc698cefec7b -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo ledger," -X github.com/tendermint/tendermint/version.TMCoreSemVer=v0.34.27-kava.0 -w -s' -trimpath ./cmd/0gchaind go: downloading cosmossdk.io/math v1.0.0-beta.6.0.20230216172121-959ce49135e4 app/tally_handler.go:4:2: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4 make: *** [Makefile:202: install] Error 1 ```

I was change the version for v1.3.0 but not works too.

Thanks!

0xN2 commented 3 months ago

when run= go mod tidy


go: downloading cosmossdk.io/math v1.0.0-beta.6.0.20230216172121-959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    cosmossdk.io/math: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/cosmos/cosmos-sdk/types tested by
    github.com/cosmos/cosmos-sdk/types.test imports
    github.com/golang/mock/gomock: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/evmos/ethermint/x/evm/keeper tested by
    github.com/evmos/ethermint/x/evm/keeper.test imports
    github.com/onsi/ginkgo/v2: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/evmos/ethermint/x/evm/keeper tested by
    github.com/evmos/ethermint/x/evm/keeper.test imports
    github.com/onsi/gomega: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/cmd/0gchaind imports
    github.com/spf13/cast tested by
    github.com/spf13/cast.test imports
    github.com/frankban/quicktest: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/cosmos/cosmos-sdk/codec imports
    github.com/tendermint/go-amino tested by
    github.com/tendermint/go-amino.test imports
    github.com/google/gofuzz: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/cosmos/cosmos-sdk/x/auth/vesting imports
    github.com/armon/go-metrics tested by
    github.com/armon/go-metrics.test imports
    github.com/pascaldekloe/goe/verify: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/tendermint/tm-db imports
    github.com/syndtr/goleveldb/leveldb tested by
    github.com/syndtr/goleveldb/leveldb.test imports
    github.com/onsi/ginkgo: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/cmd/0gchaind imports
    github.com/cosmos/cosmos-sdk/server imports
    cosmossdk.io/log tested by
    cosmossdk.io/log.test imports
    gotest.tools/v3/assert: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/cmd/0gchaind imports
    github.com/cosmos/cosmos-sdk/server imports
    github.com/cosmos/cosmos-sdk/server/grpc tested by
    github.com/cosmos/cosmos-sdk/server/grpc.test imports
    github.com/jhump/protoreflect/grpcreflect: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/cmd/0gchaind imports
    github.com/evmos/ethermint/server imports
    github.com/improbable-eng/grpc-web/go/grpcweb tested by
    github.com/improbable-eng/grpc-web/go/grpcweb.test imports
    github.com/mwitkow/go-conntrack/connhelpers: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/cmd/0gchaind imports
    github.com/tendermint/tendermint/p2p imports
    github.com/tendermint/tendermint/p2p/conn tested by
    github.com/tendermint/tendermint/p2p/conn.test imports
    github.com/fortytw2/leaktest: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/cmd/opendb imports
    github.com/go-kit/kit/metrics tested by
    github.com/go-kit/kit/metrics.test imports
    github.com/go-kit/kit/metrics/generic imports
    github.com/VividCortex/gohistogram: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/tests/e2e/contracts/greeter imports
    github.com/ethereum/go-ethereum/accounts/abi/bind imports
    github.com/ethereum/go-ethereum/accounts/keystore tested by
    github.com/ethereum/go-ethereum/accounts/keystore.test imports
    github.com/cespare/cp: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/tests/e2e/runner imports
    github.com/ethereum/go-ethereum/ethclient tested by
    github.com/ethereum/go-ethereum/ethclient.test imports
    github.com/ethereum/go-ethereum/node imports
    github.com/golang-jwt/jwt/v4: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/x/committee/testutil imports
    github.com/stretchr/testify/assert imports
    gopkg.in/yaml.v3 tested by
    gopkg.in/yaml.v3.test imports
    gopkg.in/check.v1: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1 imports
    github.com/btcsuite/btcd/btcec/v2/ecdsa imports
    github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa tested by
    github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa.test imports
    github.com/decred/dcrd/crypto/blake256: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/cosmos/cosmos-sdk/x/auth/vesting imports
    github.com/armon/go-metrics imports
    github.com/hashicorp/go-immutable-radix tested by
    github.com/hashicorp/go-immutable-radix.test imports
    github.com/hashicorp/go-uuid: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/tendermint/tm-db imports
    github.com/syndtr/goleveldb/leveldb tested by
    github.com/syndtr/goleveldb/leveldb.test imports
    github.com/syndtr/goleveldb/leveldb/testutil imports
    github.com/onsi/ginkgo/config: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/cmd/0gchaind imports
    github.com/cosmos/cosmos-sdk/server imports
    github.com/tendermint/tendermint/cmd/cometbft/commands imports
    github.com/tendermint/tendermint/state/indexer/sink/psql tested by
    github.com/tendermint/tendermint/state/indexer/sink/psql.test imports
    github.com/adlio/schema: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/cmd/0gchaind imports
    github.com/cosmos/cosmos-sdk/server imports
    github.com/tendermint/tendermint/cmd/cometbft/commands imports
    github.com/tendermint/tendermint/state/indexer/sink/psql tested by
    github.com/tendermint/tendermint/state/indexer/sink/psql.test imports
    github.com/ory/dockertest: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/cmd/0gchaind imports
    github.com/cosmos/cosmos-sdk/server imports
    github.com/tendermint/tendermint/cmd/cometbft/commands imports
    github.com/tendermint/tendermint/state/indexer/sink/psql tested by
    github.com/tendermint/tendermint/state/indexer/sink/psql.test imports
    github.com/ory/dockertest/docker: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/cmd/0gchaind imports
    github.com/cosmos/cosmos-sdk/server imports
    github.com/tendermint/tendermint/cmd/cometbft/commands tested by
    github.com/tendermint/tendermint/cmd/cometbft/commands.test imports
    github.com/stretchr/testify/mock imports
    github.com/stretchr/objx: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/cmd/0gchaind imports
    github.com/evmos/ethermint/server imports
    github.com/improbable-eng/grpc-web/go/grpcweb imports
    nhooyr.io/websocket tested by
    nhooyr.io/websocket.test imports
    github.com/gobwas/ws: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/tests/e2e/runner imports
    github.com/ethereum/go-ethereum/ethclient tested by
    github.com/ethereum/go-ethereum/ethclient.test imports
    github.com/ethereum/go-ethereum/eth imports
    github.com/ethereum/go-ethereum/p2p/dnsdisc imports
    golang.org/x/time/rate: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/tests/e2e/runner imports
    github.com/ethereum/go-ethereum/ethclient tested by
    github.com/ethereum/go-ethereum/ethclient.test imports
    github.com/ethereum/go-ethereum/node imports
    github.com/ethereum/go-ethereum/internal/debug imports
    github.com/fjl/memsize/memsizeui: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/tests/e2e/runner imports
    github.com/ethereum/go-ethereum/ethclient tested by
    github.com/ethereum/go-ethereum/ethclient.test imports
    github.com/ethereum/go-ethereum/node imports
    github.com/ethereum/go-ethereum/internal/debug imports
    github.com/hashicorp/go-bexpr: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/tests/e2e/runner imports
    github.com/ethereum/go-ethereum/ethclient tested by
    github.com/ethereum/go-ethereum/ethclient.test imports
    github.com/ethereum/go-ethereum/node imports
    github.com/ethereum/go-ethereum/internal/debug imports
    github.com/urfave/cli/v2: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/cosmos/cosmos-sdk/x/gov imports
    github.com/cosmos/cosmos-sdk/x/gov/client/cli imports
    github.com/manifoldco/promptui imports
    github.com/chzyer/readline tested by
    github.com/chzyer/readline.test imports
    github.com/chzyer/test: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/tendermint/tm-db imports
    github.com/dgraph-io/badger/v3 imports
    github.com/dgraph-io/badger/v3/y imports
    github.com/cespare/xxhash tested by
    github.com/cespare/xxhash.test imports
    github.com/OneOfOne/xxhash: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/tendermint/tm-db imports
    github.com/dgraph-io/badger/v3 imports
    github.com/dgraph-io/badger/v3/y imports
    github.com/cespare/xxhash tested by
    github.com/cespare/xxhash.test imports
    github.com/spaolacci/murmur3: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/cmd/0gchaind imports
    github.com/evmos/ethermint/server imports
    github.com/improbable-eng/grpc-web/go/grpcweb imports
    nhooyr.io/websocket tested by
    nhooyr.io/websocket.test imports
    github.com/gin-gonic/gin imports
    github.com/gin-contrib/sse: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/x/evmutil/migrations/v2 tested by
    github.com/0glabs/0g-chain/x/evmutil/migrations/v2.test imports
    github.com/cosmos/cosmos-sdk/simapp imports
    github.com/cosmos/cosmos-sdk/x/group imports
    github.com/cosmos/cosmos-sdk/x/group/internal/math tested by
    github.com/cosmos/cosmos-sdk/x/group/internal/math.test imports
    pgregory.net/rapid: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/cmd/0gchaind imports
    github.com/evmos/ethermint/server imports
    github.com/improbable-eng/grpc-web/go/grpcweb imports
    nhooyr.io/websocket tested by
    nhooyr.io/websocket.test imports
    github.com/gin-gonic/gin imports
    github.com/gin-gonic/gin/binding imports
    github.com/go-playground/validator/v10 imports
    github.com/go-playground/universal-translator: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/cmd/0gchaind imports
    github.com/evmos/ethermint/server imports
    github.com/improbable-eng/grpc-web/go/grpcweb imports
    nhooyr.io/websocket tested by
    nhooyr.io/websocket.test imports
    github.com/gin-gonic/gin imports
    github.com/gin-gonic/gin/binding imports
    github.com/go-playground/validator/v10 imports
    github.com/leodido/go-urn: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/cosmos/cosmos-sdk/x/upgrade imports
    github.com/cosmos/cosmos-sdk/x/upgrade/client/cli imports
    github.com/cosmos/cosmos-sdk/x/upgrade/plan imports
    github.com/hashicorp/go-getter imports
    cloud.google.com/go/storage tested by
    cloud.google.com/go/storage.test imports
    cloud.google.com/go/httpreplay imports
    cloud.google.com/go/httpreplay/internal/proxy imports
    github.com/google/martian/v3: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/cosmos/cosmos-sdk/x/upgrade imports
    github.com/cosmos/cosmos-sdk/x/upgrade/client/cli imports
    github.com/cosmos/cosmos-sdk/x/upgrade/plan imports
    github.com/hashicorp/go-getter imports
    cloud.google.com/go/storage tested by
    cloud.google.com/go/storage.test imports
    cloud.google.com/go/httpreplay imports
    cloud.google.com/go/httpreplay/internal/proxy imports
    github.com/google/martian/v3/fifo: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/cosmos/cosmos-sdk/x/upgrade imports
    github.com/cosmos/cosmos-sdk/x/upgrade/client/cli imports
    github.com/cosmos/cosmos-sdk/x/upgrade/plan imports
    github.com/hashicorp/go-getter imports
    cloud.google.com/go/storage tested by
    cloud.google.com/go/storage.test imports
    cloud.google.com/go/httpreplay imports
    cloud.google.com/go/httpreplay/internal/proxy imports
    github.com/google/martian/v3/httpspec: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/cosmos/cosmos-sdk/x/upgrade imports
    github.com/cosmos/cosmos-sdk/x/upgrade/client/cli imports
    github.com/cosmos/cosmos-sdk/x/upgrade/plan imports
    github.com/hashicorp/go-getter imports
    cloud.google.com/go/storage tested by
    cloud.google.com/go/storage.test imports
    cloud.google.com/go/httpreplay imports
    cloud.google.com/go/httpreplay/internal/proxy imports
    github.com/google/martian/v3/martianlog: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/cosmos/cosmos-sdk/x/upgrade imports
    github.com/cosmos/cosmos-sdk/x/upgrade/client/cli imports
    github.com/cosmos/cosmos-sdk/x/upgrade/plan imports
    github.com/hashicorp/go-getter imports
    cloud.google.com/go/storage tested by
    cloud.google.com/go/storage.test imports
    cloud.google.com/go/httpreplay imports
    cloud.google.com/go/httpreplay/internal/proxy imports
    github.com/google/martian/v3/mitm: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4
go: github.com/0glabs/0g-chain/app imports
    github.com/cosmos/cosmos-sdk/x/upgrade imports
    github.com/cosmos/cosmos-sdk/x/upgrade/client/cli imports
    github.com/cosmos/cosmos-sdk/x/upgrade/plan imports
    github.com/hashicorp/go-getter imports
    github.com/aws/aws-sdk-go/service/s3 imports
    github.com/aws/aws-sdk-go/aws/awsutil imports
    github.com/jmespath/go-jmespath tested by
    github.com/jmespath/go-jmespath.test imports
    github.com/jmespath/go-jmespath/internal/testify/assert: cosmossdk.io/math@v1.0.0-beta.6.0.20230216172121-959ce49135e4: invalid version: unknown revision 959ce49135e4 ``` 
ethanz0g commented 2 months ago

Hello @0xN2 ,

There are now some newer versions, such as version 0.2.4. You might want to give them a try.