From 4d576160f6b1ec3376de61363889917d47b981a4 Mon Sep 17 00:00:00 2001 From: Pascal Breuninger Date: Thu, 19 Dec 2024 16:07:32 +0100 Subject: [PATCH] fix(pro): reinitialize devcontainer folder if running on runner with local agent --- cmd/ssh.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cmd/ssh.go b/cmd/ssh.go index 5844fa29c..8ede1dad2 100644 --- a/cmd/ssh.go +++ b/cmd/ssh.go @@ -677,6 +677,11 @@ func (cmd *SSHCmd) jumpLocalProxyContainer(ctx context.Context, devPodConfig *co return nil } + _, err = workspace.InitContentFolder(workspaceInfo, log) + if err != nil { + return err + } + runner, err := workspace.CreateRunner(workspaceInfo, log) if err != nil { return err @@ -689,9 +694,7 @@ func (cmd *SSHCmd) jumpLocalProxyContainer(ctx context.Context, devPodConfig *co if containerDetails == nil || containerDetails.State.Status != "running" { log.Info("Workspace isn't running, starting up...") - _, err := runner.Up(ctx, devcontainer.UpOptions{ - CLIOptions: workspaceInfo.CLIOptions, - NoBuild: true}, workspaceInfo.InjectTimeout) + _, err := runner.Up(ctx, devcontainer.UpOptions{NoBuild: true}, workspaceInfo.InjectTimeout) if err != nil { return err }