Skip to content

Commit

Permalink
Upgrade vulnerable dependencies (#208)
Browse files Browse the repository at this point in the history
* Upgrade vulnerable dependencies

* Add Clang to CI

* Using modified version of ripple-keypairs

* Remove webpki

* Fix linting

* Upgrade cosmos-sdk to v0.47.11

* Upgrade coreum

* Fix go.work.sum

* Upgrade coreum and crust dependencies

* Remove .DS_Store

* Fix go.sum

* Fix builder

* Fix linting problem

* Upgrade hashicorp's go-getter

* Upgrade crust

* Upgrade coreum

* Fix go.mod
  • Loading branch information
masihyeganeh authored May 1, 2024
1 parent 4014696 commit bad1290
Show file tree
Hide file tree
Showing 10 changed files with 1,643 additions and 1,523 deletions.
17 changes: 8 additions & 9 deletions build/bridge/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ import (
)

const (
repoPath = "."
binaryName = "coreumbridge-xrpl"
binaryPath = "bin/" + binaryName
testsDir = repoPath + "/integration-tests"
goCoverFlag = "-cover"
binaryOutputFlag = "-o"
repoPath = "."
binaryName = "coreumbridge-xrpl"
binaryPath = "bin/" + binaryName
testsDir = repoPath + "/integration-tests"
goCoverFlag = "-cover"
)

// BuildRelayer builds all the versions of relayer binary.
Expand All @@ -37,9 +36,9 @@ func BuildRelayerLocally(ctx context.Context, deps build.DepsFunc) error {
return golang.Build(ctx, deps, golang.BinaryBuildConfig{
TargetPlatform: tools.TargetPlatformLocal,
PackagePath: filepath.Join(repoPath, "relayer/cmd"),
BinOutputPath: binaryPath,
Flags: []string{
versionFlags,
binaryOutputFlag + "=" + binaryPath,
},
})
}
Expand All @@ -63,10 +62,10 @@ func buildRelayerInDocker(
return golang.Build(ctx, deps, golang.BinaryBuildConfig{
TargetPlatform: targetPlatform,
PackagePath: filepath.Join(repoPath, "relayer/cmd"),
BinOutputPath: filepath.Join("bin", ".cache", binaryName, targetPlatform.String(), "bin", binaryName),
Flags: append(extraFlags,
versionFlags,
binaryOutputFlag+"="+
filepath.Join("bin", ".cache", binaryName, targetPlatform.String(), "bin", binaryName)),
),
})
}

Expand Down
2 changes: 1 addition & 1 deletion build/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21

require (
github.com/CoreumFoundation/coreum-tools v0.4.1-0.20240321120602-0a9c50facc68
github.com/CoreumFoundation/crust/build v0.0.0-20240405060126-d50d9a6ccafa
github.com/CoreumFoundation/crust/build v0.0.0-20240430120448-28dd7f5dacb7
github.com/pkg/errors v0.9.1
)

Expand Down
4 changes: 2 additions & 2 deletions build/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8
github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/CoreumFoundation/coreum-tools v0.4.1-0.20240321120602-0a9c50facc68 h1:Tb9avuSQW3smVGrUnDh/Y+ML4eK802UsvJNZHsBgOGg=
github.com/CoreumFoundation/coreum-tools v0.4.1-0.20240321120602-0a9c50facc68/go.mod h1:VD93vCHkxYaT/RhOesXTFgd/GQDW54tr0BqGi5JU1c0=
github.com/CoreumFoundation/crust/build v0.0.0-20240405060126-d50d9a6ccafa h1:auxLQK73jxUzvUV0dltOwgVFTYYca6JwZHad6hvc6n4=
github.com/CoreumFoundation/crust/build v0.0.0-20240405060126-d50d9a6ccafa/go.mod h1:ZUxc7Pskj95EYmPMp8kU6yyeyZ5PcWuixfbVfIlGTVs=
github.com/CoreumFoundation/crust/build v0.0.0-20240430120448-28dd7f5dacb7 h1:9MxrRBEPRuh3fBY0TIXFz4CPbwKEKojRupnxTcWmV60=
github.com/CoreumFoundation/crust/build v0.0.0-20240430120448-28dd7f5dacb7/go.mod h1:2jqmpvPVpODkfLXUWc2Fj9voIMloobAHFcbhNxbwGSc=
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
Expand Down
Loading

0 comments on commit bad1290

Please sign in to comment.