From 5d09070fcb6d3a9eaaa39ec489bcc79ca34b1169 Mon Sep 17 00:00:00 2001 From: Ilya Kuznetsov Date: Tue, 19 Nov 2024 11:50:28 +0100 Subject: [PATCH] fix: Cleanup --- bundle/config/mutator/process_target_mode.go | 3 +-- bundle/config/validate/folder_permissions_test.go | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bundle/config/mutator/process_target_mode.go b/bundle/config/mutator/process_target_mode.go index 77bb54cbd..df0136fad 100644 --- a/bundle/config/mutator/process_target_mode.go +++ b/bundle/config/mutator/process_target_mode.go @@ -59,8 +59,7 @@ func transformDevelopmentMode(ctx context.Context, b *bundle.Bundle) { } if !config.IsExplicitlyDisabled(t.SourceLinkedDeployment) { - root := b.SyncRootPath - isInWorkspace := strings.HasPrefix(root, "/Workspace/") + isInWorkspace := strings.HasPrefix(b.SyncRootPath, "/Workspace/") if isInWorkspace && dbr.RunsOnRuntime(ctx) { enabled := true t.SourceLinkedDeployment = &enabled diff --git a/bundle/config/validate/folder_permissions_test.go b/bundle/config/validate/folder_permissions_test.go index f609724ee..8e68c9fbf 100644 --- a/bundle/config/validate/folder_permissions_test.go +++ b/bundle/config/validate/folder_permissions_test.go @@ -18,7 +18,6 @@ import ( func TestFolderPermissionsInheritedWhenRootPathDoesNotExist(t *testing.T) { b := &bundle.Bundle{ - SyncRootPath: t.TempDir(), Config: config.Root{ Workspace: config.Workspace{ RootPath: "/Workspace/Users/foo@bar.com",