From 4cf692924c62d69578dd16de2e5bd7da883b2565 Mon Sep 17 00:00:00 2001 From: Ilya Kuznetsov Date: Thu, 14 Nov 2024 18:46:10 +0100 Subject: [PATCH] fix: Missing root variable --- bundle/config/mutator/apply_presets.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundle/config/mutator/apply_presets.go b/bundle/config/mutator/apply_presets.go index aad5504c8..2a9b02204 100644 --- a/bundle/config/mutator/apply_presets.go +++ b/bundle/config/mutator/apply_presets.go @@ -223,7 +223,8 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos } if config.IsExplicitlyEnabled((b.Config.Presets.InPlaceDeployment)) { - isInWorkspace := ok && strings.HasPrefix(root, "/Workspace/") + root := b.SyncRoot.Native() + isInWorkspace := strings.HasPrefix(root, "/Workspace/") if isInWorkspace && dbr.RunsOnRuntime(ctx) { b.Config.Workspace.FilePath = b.SyncRootPath } else {