fix: Cleanup

This commit is contained in:
Ilya Kuznetsov 2024-11-19 11:50:28 +01:00
parent 234d971790
commit 5d09070fcb
No known key found for this signature in database
GPG Key ID: 91F3DDCF5D21CDDF
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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",