README: keep Windows build paths short (blake3's ml64 fails past ~170 characters) #2044

Manually merged
github merged 1 commit from gh-pr/2044/head into gh-pr/2044/base 2026-11-26 04:52:43 +00:00
Owner

@⁠Creaa on GitHub · 2026-11-25 04:02 UTC · original
Creaa:docs/windows-short-build-path → main · +8 −0 · 1 files · 1 commits · merged 2026-11-25 21:53 UTC

Adds a note to Getting started for builds that fail on long Windows paths. Fixes #2029.

From a checkout about 170 characters deep, the blake3 dependency's build script fails in ml64.exe with A1009: line too long, even with long paths enabled, because its object files are written under target. A short CARGO_TARGET_DIR avoids it. The numbers are from #2029 (150 characters built, 170 failed, the same checkout with a 33-character CARGO_TARGET_DIR built). The note also says where victory.exe lands then, since the commands below name target\release.

What is in it

  • README.md: one paragraph after the MSVC build tools requirement.

Tested

  • cargo xtask policy: 182 files ok.
  • Documentation only; no code changes.

Not tested

  • I did not reproduce the failure myself: my checkout path is short. The measurements are the issue reporter's.

AI use

  • Claude Code (Claude Opus 5.5) wrote the note and this description; I checked both.

🤖 Generated with Claude Code

**@⁠Creaa** on GitHub · 2026-11-25 04:02 UTC · [original](https://github.com/Marvisak/VIctory/pull/2044) `Creaa:docs/windows-short-build-path` → `main` · +8 −0 · 1 files · 1 commits · merged 2026-11-25 21:53 UTC Adds a note to **Getting started** for builds that fail on long Windows paths. Fixes #2029. From a checkout about 170 characters deep, the `blake3` dependency's build script fails in `ml64.exe` with `A1009: line too long`, even with long paths enabled, because its object files are written under `target`. A short `CARGO_TARGET_DIR` avoids it. The numbers are from #2029 (150 characters built, 170 failed, the same checkout with a 33-character `CARGO_TARGET_DIR` built). The note also says where `victory.exe` lands then, since the commands below name `target\release`. **What is in it** - `README.md`: one paragraph after the MSVC build tools requirement. **Tested** - `cargo xtask policy`: 182 files ok. - Documentation only; no code changes. **Not tested** - I did not reproduce the failure myself: my checkout path is short. The measurements are the issue reporter's. **AI use** - Claude Code (Claude Opus 5.5) wrote the note and this description; I checked both. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
From a checkout about 170 characters deep, blake3's build script fails in
ml64.exe with "A1009: line too long" even with long paths enabled, because
its object files are written under target; a short CARGO_TARGET_DIR avoids
it (measured in #2029: 150 characters built, 170 failed, a 33-character
CARGO_TARGET_DIR built). The note also says where victory.exe lands then,
since the commands below name target\release.

Fixes #2029

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:52:41 +00:00
github manually merged commit c01c339de3 into gh-pr/2044/base 2026-11-26 04:52:43 +00:00
Author
Owner

@⁠Dathinel on GitHub · 2026-11-25 04:07 UTC · original · edited 2026-11-25 04:12 UTC

Confirmed the workaround for the release build of the locked blake3 1.8.7 dependency at 3348a84. I kept the checkout at 77 characters and changed only the fresh output directory in cargo build --release --frozen -p blake3 --target-dir <path> -vv (MSVC 14.44.35207, LongPathsEnabled=1).

Absolute target directory Result
175 characters MASM A1009 on a 268-character object path
105 characters Build passed

I'd lead with “If building on Windows fails in ml64.exe with A1009, try a shorter target directory.” That also covers a short checkout with a deeply nested build cache. The 170-character checkout in #2029 is a useful example.

I also built the release CLI at the same commit with cargo build --release --frozen -p victory --target-dir <path>, reusing those directories and the same Cargo home. At 105 characters the build passed and release/victory.exe --help exited 0. At 175 characters the build failed in blake3 with the same MASM A1009.

AI-assisted; builds ran locally on Windows.

**@⁠Dathinel** on GitHub · 2026-11-25 04:07 UTC · [original](https://github.com/Marvisak/VIctory/pull/2044#issuecomment-7152544064) · edited 2026-11-25 04:12 UTC Confirmed the workaround for the release build of the locked `blake3 1.8.7` dependency at `3348a84`. I kept the checkout at 77 characters and changed only the fresh output directory in `cargo build --release --frozen -p blake3 --target-dir <path> -vv` (MSVC 14.44.35207, `LongPathsEnabled=1`). | Absolute target directory | Result | |---|---| | 175 characters | MASM A1009 on a 268-character object path | | 105 characters | Build passed | I'd lead with “If building on Windows fails in ml64.exe with A1009, try a shorter target directory.” That also covers a short checkout with a deeply nested build cache. The 170-character checkout in #2029 is a useful example. I also built the release CLI at the same commit with `cargo build --release --frozen -p victory --target-dir <path>`, reusing those directories and the same Cargo home. At 105 characters the build passed and `release/victory.exe --help` exited 0. At 175 characters the build failed in blake3 with the same MASM A1009. AI-assisted; builds ran locally on Windows.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 09:19 UTC · original · edited 2026-11-25 20:20 UTC

Automated triage for the maintainers.

Merge candidate (unchanged). The head was force-pushed as a single commit on current main, and the diff is still one short paragraph in the README's Getting started. It says that on Windows a deep checkout or target directory makes blake3's ml64.exe step fail with A1009: line too long. The fix it gives is a short CARGO_TARGET_DIR, or a checkout nearer the drive's root, and it says victory.exe then lands in C:\vt\release rather than the target\release the commands below use. A contributor in the thread reproduced the failure on Windows at a 175-character target directory and confirmed the workaround at 105 characters. This fixes #2029.

What changed since the last verdict: the commit was rebased onto current main (the old head is no longer fetchable for a byte-level comparison). The note reads as it did and still does not lead with the symptom, which was an optional suggestion. #2050 is still open and covers the same spot, so only one of the two should land. This one is shorter.

CI: passing (check).

Recommending a look, not approving.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 09:19 UTC · [original](https://github.com/Marvisak/VIctory/pull/2044#issuecomment-7158179480) · edited 2026-11-25 20:20 UTC <!-- victory-triage v1 head=c01c339de33e240a9abc394e7bd4aff3c276d22c verdict=merge-candidate at=2026-11-25T20:18:54Z --> Automated triage for the maintainers. **Merge candidate (unchanged).** The head was force-pushed as a single commit on current `main`, and the diff is still one short paragraph in the README's **Getting started**. It says that on Windows a deep checkout or target directory makes `blake3`'s `ml64.exe` step fail with `A1009: line too long`. The fix it gives is a short `CARGO_TARGET_DIR`, or a checkout nearer the drive's root, and it says `victory.exe` then lands in `C:\vt\release` rather than the `target\release` the commands below use. A contributor in the thread reproduced the failure on Windows at a 175-character target directory and confirmed the workaround at 105 characters. This fixes #2029. **What changed since the last verdict:** the commit was rebased onto current `main` (the old head is no longer fetchable for a byte-level comparison). The note reads as it did and still does not lead with the symptom, which was an optional suggestion. #2050 is still open and covers the same spot, so only one of the two should land. This one is shorter. CI: passing (`check`). Recommending a look, not approving. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2044
No description provided.