Unknown revision error when implementing Protobuf. (GO)

Viewed 412

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/cosmos-sdk@v0.33.2 updating to
github.com/cosmos/cosmos-sdk@v0.44.5 requires
github.com/gogo/protobuf@v1.3.3: reading github.com/gogo/protobuf/go.mod at revision v1.3.3: unknown revision v1.3.3
1 Answers

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

Related