From e8825d559f63a38828b508f9cb8198162744ad2e Mon Sep 17 00:00:00 2001 From: Ilya Kuznetsov Date: Mon, 18 Nov 2024 16:19:26 +0100 Subject: [PATCH] fix: Reuse existing `root` variable --- bundle/config/mutator/apply_presets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/config/mutator/apply_presets.go b/bundle/config/mutator/apply_presets.go index 1e86da0a..e41bdf9c 100644 --- a/bundle/config/mutator/apply_presets.go +++ b/bundle/config/mutator/apply_presets.go @@ -226,7 +226,7 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos root := b.SyncRootPath isInWorkspace := strings.HasPrefix(root, "/Workspace/") if isInWorkspace && dbr.RunsOnRuntime(ctx) { - b.Config.Workspace.FilePath = b.SyncRootPath + b.Config.Workspace.FilePath = root } else { disabled := false b.Config.Presets.InPlaceDeployment = &disabled