mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-09 01:26:36 +00:00
build: fix keeper build (#33018)
At the time keeper support was added into ci.go, we were using a go.work file to make ./cmd/keeper accessible from within the main go-ethereum module. The workspace file has since been removed, so we need to build keeper from within its own module instead.
This commit is contained in:
parent
074d7b79c1
commit
17e5222997
1 changed files with 2 additions and 1 deletions
|
|
@ -284,6 +284,7 @@ func doInstallKeeper(cmdline []string) {
|
||||||
tc.GOOS = target.GOOS
|
tc.GOOS = target.GOOS
|
||||||
tc.CC = target.CC
|
tc.CC = target.CC
|
||||||
gobuild := tc.Go("build", buildFlags(env, true, []string{target.Tags})...)
|
gobuild := tc.Go("build", buildFlags(env, true, []string{target.Tags})...)
|
||||||
|
gobuild.Dir = "./cmd/keeper"
|
||||||
gobuild.Args = append(gobuild.Args, "-v")
|
gobuild.Args = append(gobuild.Args, "-v")
|
||||||
|
|
||||||
for key, value := range target.Env {
|
for key, value := range target.Env {
|
||||||
|
|
@ -293,7 +294,7 @@ func doInstallKeeper(cmdline []string) {
|
||||||
|
|
||||||
args := slices.Clone(gobuild.Args)
|
args := slices.Clone(gobuild.Args)
|
||||||
args = append(args, "-o", executablePath(outputName))
|
args = append(args, "-o", executablePath(outputName))
|
||||||
args = append(args, "./cmd/keeper")
|
args = append(args, ".")
|
||||||
build.MustRun(&exec.Cmd{Path: gobuild.Path, Args: args, Env: gobuild.Env})
|
build.MustRun(&exec.Cmd{Path: gobuild.Path, Args: args, Env: gobuild.Env})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue