From ac01e32ba853ea82d0c9de20ca27c7a4d0f8a404 Mon Sep 17 00:00:00 2001 From: Wojtek <103407812+wojtek-coreum@users.noreply.github.com> Date: Thu, 22 Feb 2024 12:45:30 +0100 Subject: [PATCH] Remove `ensureRepo` function (#61) * Remove `ensureRepo` function * fix * fix --- build/bdjuno/build.go | 10 +--------- build/cmd/main.go | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/build/bdjuno/build.go b/build/bdjuno/build.go index b696b9a07..9d467f1cf 100644 --- a/build/bdjuno/build.go +++ b/build/bdjuno/build.go @@ -5,14 +5,12 @@ import ( "path/filepath" "github.com/CoreumFoundation/coreum-tools/pkg/build" - "github.com/CoreumFoundation/crust/build/git" "github.com/CoreumFoundation/crust/build/golang" "github.com/CoreumFoundation/crust/build/tools" ) const ( - repoURL = "https://github.com/CoreumFoundation/bdjuno.git" - repoPath = "../bdjuno" + repoPath = "." binaryName = "bdjuno" binaryPath = "bin/" + binaryName ) @@ -33,15 +31,9 @@ func Test(ctx context.Context, deps build.DepsFunc) error { } func buildBDJuno(ctx context.Context, deps build.DepsFunc, targetPlatform tools.TargetPlatform) error { - deps(ensureRepo) - return golang.Build(ctx, deps, golang.BinaryBuildConfig{ TargetPlatform: targetPlatform, PackagePath: filepath.Join(repoPath, "cmd", "bdjuno"), BinOutputPath: filepath.Join("bin", ".cache", binaryName, targetPlatform.String(), "bin", binaryName), }) } - -func ensureRepo(ctx context.Context, deps build.DepsFunc) error { - return git.EnsureRepo(ctx, repoURL) -} diff --git a/build/cmd/main.go b/build/cmd/main.go index fa4225209..962ffd996 100644 --- a/build/cmd/main.go +++ b/build/cmd/main.go @@ -24,7 +24,7 @@ func main() { } changeWorkingDir() - return build.Do(ctx, "coreum", flags.Args(), exec) + return build.Do(ctx, "bdjuno", flags.Args(), exec) }) }