Skip to content

Commit 17e5222

Browse files
authored
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.
1 parent 074d7b7 commit 17e5222

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/ci.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ func doInstallKeeper(cmdline []string) {
284284
tc.GOOS = target.GOOS
285285
tc.CC = target.CC
286286
gobuild := tc.Go("build", buildFlags(env, true, []string{target.Tags})...)
287+
gobuild.Dir = "./cmd/keeper"
287288
gobuild.Args = append(gobuild.Args, "-v")
288289

289290
for key, value := range target.Env {
@@ -293,7 +294,7 @@ func doInstallKeeper(cmdline []string) {
293294

294295
args := slices.Clone(gobuild.Args)
295296
args = append(args, "-o", executablePath(outputName))
296-
args = append(args, "./cmd/keeper")
297+
args = append(args, ".")
297298
build.MustRun(&exec.Cmd{Path: gobuild.Path, Args: args, Env: gobuild.Env})
298299
}
299300
}

0 commit comments

Comments
 (0)