Skip to content

Commit

Permalink
Add replacer for all replace instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKrishna committed Dec 9, 2022
1 parent e6ac395 commit a6b7a2d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions accounts/abi/bind/bind_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2022,6 +2022,28 @@ func TestGolangBindings(t *testing.T) {
if out, err := replacer.CombinedOutput(); err != nil {
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out)
}

replacer = exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/cosmos/cosmos-sdk@v0.37.4", "-replace", "github.com/cosmos/cosmos-sdk="+"github.com/maticnetwork/cosmos-sdk@v0.37.5-0.20220311095845-81690c6a53e7") // Repo root
replacer.Dir = pkg

if out, err := replacer.CombinedOutput(); err != nil {
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out)
}

replacer = exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/tendermint/tendermint@v0.32.7", "-replace", "github.com/tendermint/tendermint="+"github.com/maticnetwork/tendermint@v0.26.0-dev0.0.20220923185258-3e7c7f86ce9f") // Repo root
replacer.Dir = pkg

if out, err := replacer.CombinedOutput(); err != nil {
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out)
}

replacer = exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/Masterminds/goutils@v1.1.0", "-replace", "github.com/Masterminds/goutils="+"github.com/Masterminds/goutils@v1.1.1") // Repo root
replacer.Dir = pkg

if out, err := replacer.CombinedOutput(); err != nil {
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out)
}

tidier := exec.Command(gocmd, "mod", "tidy")
tidier.Dir = pkg
if out, err := tidier.CombinedOutput(); err != nil {
Expand Down

0 comments on commit a6b7a2d

Please sign in to comment.