<#1342 fix(devbox): make `flyte start devbox` work...
# flyte-github
a
#1342 fix(devbox): make
flyte start devbox
work on Windows
Pull request opened by pingsutw Why
flyte start devbox
cannot start on Windows today. Three host-OS assumptions in
flyte/cli/_devbox.py
are POSIX-only. What | Bug | Effect on Windows | Fix | | ------------------------------ | -------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | | _KUBE_DIR = Path("/tmp/.kube") | Renders as the driveless \tmp\.kube; docker rejects it as a -v host path | tempfile.gettempdir() / ".kube" on Windows, /tmp/.kube elsewhere | | KUBECONFIG joined with : | Windows separator is ;, and : also splits C:\... in half → kubeconfig merge produces garbage | os.pathsep.join(...) | | chown retry calls os.getuid() | AttributeError, masking the real kubectl error | Only applies to Linux bind mounts — re-raise on Windows | Tests New
TestWindowsSupport
in
tests/cli/test_devbox.py
pins all three (cross-platform, plus one Windows-only drive-letter assertion), and a
windows-latest
job in
tests.yml
runs
tests/cli
. Not covered An end-to-end "start the devbox and run a task" test on Windows. GitHub-hosted Windows runners have no Linux container support (no WSL2/Hyper-V nested virt for the Docker daemon), so the k3s-based devbox image can't run there — that needs a self-hosted Windows machine with Docker Desktop. https://claude.ai/code/session_01AHoR3R93whTNKzGhP2Mi4w flyteorg/flyte-sdk