fix: Wrong condition

This commit is contained in:
Ilya Kuznetsov 2024-11-18 12:22:14 +01:00
parent 49f6bc9354
commit e65b50cf3c
No known key found for this signature in database
GPG Key ID: 91F3DDCF5D21CDDF
1 changed files with 8 additions and 9 deletions

View File

@ -59,18 +59,17 @@ func transformDevelopmentMode(ctx context.Context, b *bundle.Bundle) {
}
if !config.IsExplicitlyDisabled(t.InPlaceDeployment) {
enabled := true
t.InPlaceDeployment = &enabled
root := b.SyncRootPath
isInWorkspace := strings.HasPrefix(root, "/Workspace/")
if isInWorkspace && dbr.RunsOnRuntime(ctx) {
enabled := true
t.InPlaceDeployment = &enabled
}
}
if !config.IsExplicitlyDisabled(t.PipelinesDevelopment) {
root := b.SyncRootPath
isInWorkspace := strings.HasPrefix(root, "/Workspace/")
if isInWorkspace && dbr.RunsOnRuntime(ctx) {
enabled := true
t.PipelinesDevelopment = &enabled
}
enabled := true
t.PipelinesDevelopment = &enabled
}
}