mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
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:
parent
4d33061c51
commit
eb9f671036
1 changed files with 1 additions and 1 deletions
|
|
@ -311,7 +311,7 @@ func doInstallKeeper(cmdline []string) {
|
|||
args := slices.Clone(gobuild.Args)
|
||||
args = append(args, "-o", executablePath(outputName))
|
||||
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})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue