Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io"
"os"
"os/exec"
"path/filepath"
"path"
"strings"
"time"

Expand Down Expand Up @@ -495,7 +495,10 @@ func (cmd *SSHCmd) startTunnel(ctx context.Context, devPodConfig *config.Config,
}
}

workdir := filepath.Join("/workspaces", workspaceClient.Workspace())
// build the remote workdir with path.Join instead of filepath.Join,
// because the path is used on a Linux container even when devpod
// itself runs on Windows, where filepath.Join would use backslashes
workdir := path.Join("/workspaces", workspaceClient.Workspace())
if cmd.WorkDir != "" {
workdir = cmd.WorkDir
}
Expand Down