Skip to content

fix: enable long paths and move cargo/rustup homes on Windows - #44

Merged
ghaith merged 1 commit into
mainfrom
fix/windows-long-paths
Oct 19, 2026
Merged

ghaith merged 1 commit into
mainfrom
fix/windows-long-paths

Conversation

@ghaith

@ghaith ghaith commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Cargo's libgit2 rejects checkouts with paths over MAX_PATH unless core.longpaths is set, which breaks git dependencies with deep trees.

  • Set LongPathsEnabled in the registry and core.longpaths in the system git config
  • Install cargo and rustup under C:\buildtools instead of the user profile, keeping paths short and independent of the container user

Cargo's libgit2 rejects checkouts with paths over MAX_PATH unless
core.longpaths is set, which breaks git dependencies with deep trees.

- Set LongPathsEnabled in the registry and core.longpaths in the system
  git config
- Install cargo and rustup under C:\buildtools instead of the user
  profile, keeping paths short and independent of the container user

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread windows/Dockerfile
@ghaith
ghaith merged commit 395c948 into main Oct 19, 2026
6 checks passed
@ghaith
ghaith deleted the fix/windows-long-paths branch October 19, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants