Home > Software engineering >  Can Go module Checksum verification be bypassed?
Can Go module Checksum verification be bypassed?

Time:01-01

I am experimenting with the Cosmos SDK written in Go. The SDK is used in a different module (via require directive in go.mod). I will call this module x. If any changes are made to the SDK (in $GOPATH/pkg/mod/github.com/cosmos/[email protected]), compilation of module x fails due to a checksum mismatch (it complains that the cosmos-sdk directory has been modified). I have looked around and there are proper ways of managing this, but how can this verification step be bypassed?

CodePudding user response:

You want to use the replace directive in your go.mod and point it at the locally modified source code path.

  •  Tags:  
  • go
  • Related