Skip to content

Commit bf06755

Browse files
authored
Fix workspace creation (#19027)
1 parent 5b6c63d commit bf06755

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/local-app/cmd/workspace-create.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ var workspaceCreateCmd = &cobra.Command{
101101
},
102102
WorkspaceClass: workspaceCreateOpts.WorkspaceClass,
103103
},
104+
// Without this flag we might not create a new workspce because there's already one running on the same commit.
105+
IgnoreRunningWorkspaceOnSameCommit: true,
106+
// Note(cw): the CLI cannot handle running prebuilds yet, so we ignore them for now.
107+
IgnoreRunningPrebuild: true,
108+
AllowUsingPreviousPrebuilds: true,
104109
},
105110
))
106111
if err != nil {

0 commit comments

Comments
 (0)