Skip to content

Commit 4d57616

Browse files
fix(pro): reinitialize devcontainer folder if running on runner with local agent
1 parent 6a1c487 commit 4d57616

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

cmd/ssh.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,11 @@ func (cmd *SSHCmd) jumpLocalProxyContainer(ctx context.Context, devPodConfig *co
677677
return nil
678678
}
679679

680+
_, err = workspace.InitContentFolder(workspaceInfo, log)
681+
if err != nil {
682+
return err
683+
}
684+
680685
runner, err := workspace.CreateRunner(workspaceInfo, log)
681686
if err != nil {
682687
return err
@@ -689,9 +694,7 @@ func (cmd *SSHCmd) jumpLocalProxyContainer(ctx context.Context, devPodConfig *co
689694

690695
if containerDetails == nil || containerDetails.State.Status != "running" {
691696
log.Info("Workspace isn't running, starting up...")
692-
_, err := runner.Up(ctx, devcontainer.UpOptions{
693-
CLIOptions: workspaceInfo.CLIOptions,
694-
NoBuild: true}, workspaceInfo.InjectTimeout)
697+
_, err := runner.Up(ctx, devcontainer.UpOptions{NoBuild: true}, workspaceInfo.InjectTimeout)
695698
if err != nil {
696699
return err
697700
}

0 commit comments

Comments
 (0)