From 484e362fcff09b8b74162eefd0c3bfd67e829d94 Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Wed, 2 Oct 2024 16:02:12 +0200 Subject: pkg/build: use the build environment in clean() calls This unifies the build() and clean() interfaces such that if a custom compiler or make binary is provided in the manager or bisection config, they can be taken into account by the clean() interface. --- pkg/build/gvisor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/build/gvisor.go') diff --git a/pkg/build/gvisor.go b/pkg/build/gvisor.go index 49d78f2c7..077932938 100644 --- a/pkg/build/gvisor.go +++ b/pkg/build/gvisor.go @@ -95,7 +95,7 @@ func (gvisor gvisor) build(params Params) (ImageDetails, error) { return ImageDetails{}, osutil.CopyFile(outBinary, filepath.Join(params.OutputDir, "obj", sysTarget.KernelObject)) } -func (gvisor) clean(kernelDir, targetArch string) error { +func (gvisor) clean(params Params) error { // Let's assume that bazel always properly handles build without cleaning (until proven otherwise). return nil } -- cgit mrf-deployment