Skip to content

Commit

Permalink
Merge pull request #1063 from pascalbreuninger/fix/POD-650-pro-local-…
Browse files Browse the repository at this point in the history
…folder

fix(cli): update workspace content for local sources in pro
  • Loading branch information
89luca89 authored May 13, 2024
2 parents 8709090 + 904a52f commit 7b19d85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/agent/workspace/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ func (cmd *UpCmd) up(ctx context.Context, workspaceInfo *provider2.AgentWorkspac
}

func prepareWorkspace(ctx context.Context, workspaceInfo *provider2.AgentWorkspaceInfo, client tunnel.TunnelClient, helper string, log log.Logger) error {
// change content folder if source is local folder in proxy mode
// to a folder that's known ahead of time inside of DEVPOD_HOME
if workspaceInfo.CLIOptions.Proxy && workspaceInfo.Workspace.Source.LocalFolder != "" {
workspaceInfo.ContentFolder = agent.GetAgentWorkspaceContentDir(workspaceInfo.Origin)
}

// make sure content folder exists
exists, err := InitContentFolder(workspaceInfo, log)
if err != nil {
Expand Down

0 comments on commit 7b19d85

Please sign in to comment.