build: fix keeper build not using correct working directory (#574)

The exec.Cmd created for each keeper target was missing the Dir field,
causing the build to run from the repo root instead of ./cmd/keeper.
This meant compilation errors in cmd/keeper were silently ignored.

Co-authored-by: tellabg <249254436+tellabg@users.noreply.github.com>
This commit is contained in:
Guillaume Ballet 2026-03-23 21:06:47 +01:00 committed by GitHub
parent 4d33061c51
commit eb9f671036
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -311,7 +311,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, ".") 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, Dir: gobuild.Dir})
} }
} }