From e4d2aef70c48cbcb4173a30dafbb51e6878c8b8e Mon Sep 17 00:00:00 2001 From: Laura Peskin Date: Mon, 9 Dec 2024 12:07:43 -0800 Subject: pkg/build: use relative path for fx set directory arg --- pkg/build/starnix.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/build/starnix.go b/pkg/build/starnix.go index 1ab542929..712bc5b4c 100644 --- a/pkg/build/starnix.go +++ b/pkg/build/starnix.go @@ -59,11 +59,11 @@ func (st starnix) build(params Params) (ImageDetails, error) { if err := osutil.SandboxChown(localDir); err != nil { return ImageDetails{}, err } - buildDir := filepath.Join(params.KernelDir, "out/"+arch) + buildSubdir := "out/" + arch if _, err := runSandboxed( time.Hour, params.KernelDir, - "scripts/fx", "--dir", buildDir, + "scripts/fx", "--dir", buildSubdir, "set", product, "--assembly-override", fmt.Sprintf("//products/workbench/*=//local:%s", overrideName), ); err != nil { @@ -82,7 +82,7 @@ func (st starnix) build(params Params) (ImageDetails, error) { params.KernelDir, ffxBinary, "--no-environment", - "-c", filepath.Join(buildDir, ffxBuildConfig), + "-c", filepath.Join(params.KernelDir, buildSubdir, ffxBuildConfig), "-c", "log.enabled=false,ffx.analytics.disabled=true,daemon.autostart=false", "config", "get", "product.path", ) -- cgit mrf-deployment