Skip to content

Avoid clobbering Windows docker contexts through WSL symlinks and ignore empty KIRI_UPDATE_URL (#269, #984) - #1004

Merged
libracoder merged 1 commit into
mainfrom
fix/wsl-context-symlink
Nov 28, 2026
Merged

libracoder merged 1 commit into
mainfrom
fix/wsl-context-symlink

Conversation

@libracoder

Copy link
Copy Markdown
Owner

Summary

  • crates/kiri-win/src/wslsync.rs: When Docker Desktop has symlinked ~/.docker/contexts -> /mnt/c/Users/<user>/.docker/contexts inside a WSL distro, materialize ~/.docker/contexts as a local Linux directory (preserving existing contexts) before writing contexts/meta/<sha256(kiri)>/meta.json (unix:///mnt/wsl/kiri/sockets/<distro>/docker.sock), and skip symlinked ~/.docker directories so Windows's %USERPROFILE%\.docker\contexts\meta\<hash>\meta.json (npipe:////./pipe/kiri) is never overwritten.
  • crates/kiri/src/dockerctx.rs: Self-heal %USERPROFILE%\.docker\contexts\meta\<sha256(kiri)>\meta.json in repair_windows_config when an existing Windows context file points to a unix: socket instead of npipe:.
  • crates/kiri/src/update.rs & crates/kiri-win/src/update.rs: Treat empty/whitespace KIRI_UPDATE_URL="" (e.g. from Windows setx KIRI_UPDATE_URL "") as unset so update checks fall back to the default feed instead of failing with http: empty string.

Fixes #269
Fixes #984

@libracoder
libracoder merged commit 6aa889d into main Nov 28, 2026
14 checks passed
@libracoder
libracoder deleted the fix/wsl-context-symlink branch November 28, 2026 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant