Search code examples
goprotocol-bufferscosmosprotobuf-gocosmos-sdk

Unknown revision error when implementing Protobuf. (GO)


I am coding at the moment GO with GitHub Repositories and need to pull a package.

go get github.com/cosmos/cosmos-sdk/types

When I enter there comes:

go get: github.com/cosmos/[email protected] updating to
github.com/cosmos/[email protected] requires
github.com/gogo/[email protected]: reading github.com/gogo/protobuf/go.mod at revision v1.3.3: unknown revision v1.3.3

Solution

  • Yes this is a known issue. Can you try adding this line as a replace directive in your go.mod file:

    replace (
            github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
    )
    

    for your reference please check here