README: a short build path on Windows, and what its failures look like #2050

Closed
github-bot wants to merge 1 commit from gh-pr/2050/head into gh-pr/2050/base
Owner

@⁠fiestorra on GitHub · 2026-11-25 04:07 UTC · original
fiestorra:docs/build-path → main · +5 −2 · 1 files · 1 commits · closed without merging

README: a short build path on Windows, and what its failures look like

Adding the note to Getting started, next to the MSVC requirement, since that is where someone hits it.

What it says:

  • the build scripts the tree compiles for itself do not all cope with a long checkout — blake3's ml64.exe step fails around 150 characters (#836), and the same shape shows up elsewhere as LNK1104 on a build-script executable (xcl#1118);
  • the errors name neither the path nor the cause, which is why it belongs in the README rather than in a bug report;
  • three ways out: a short clone (C:\src\victory), a short drive mapping over the deep one (subst V: C:\that\long\path, which is what #836's reporter used), or moving the build output:
$env:CARGO_TARGET_DIR = 'C:\v-target'

The last one is the one worth knowing: most of the path length is the target directory (target\debug\build\<crate>-<hash>\out\…), so a deep checkout plus a short target directory usually works, and a short target directory is also the cheapest thing to change.

I did not invent a threshold: the "about 150 characters" is #836's number, and the note says so with the issue number rather than stating it as a rule.

A README change runs the same CI job as everything else; cargo clippy --workspace --all-targets --locked -- -D warnings is clean locally.

Closes #2029.

No game data is involved: documentation only.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 04:07 UTC · [original](https://github.com/Marvisak/VIctory/pull/2050) `fiestorra:docs/build-path` → `main` · +5 −2 · 1 files · 1 commits · closed without merging **README: a short build path on Windows, and what its failures look like** Adding the note to **Getting started**, next to the MSVC requirement, since that is where someone hits it. What it says: - the build scripts the tree compiles for itself do not all cope with a long checkout — `blake3`'s `ml64.exe` step fails around 150 characters (#836), and the same shape shows up elsewhere as `LNK1104` on a build-script executable (xcl#1118); - the errors name neither the path nor the cause, which is why it belongs in the README rather than in a bug report; - three ways out: a short clone (`C:\src\victory`), a short drive mapping over the deep one (`subst V: C:\that\long\path`, which is what #836's reporter used), or moving the build output: ```powershell $env:CARGO_TARGET_DIR = 'C:\v-target' ``` The last one is the one worth knowing: most of the path length is the target directory (`target\debug\build\<crate>-<hash>\out\…`), so a deep checkout plus a short target directory usually works, and a short target directory is also the cheapest thing to change. I did not invent a threshold: the "about 150 characters" is #836's number, and the note says so with the issue number rather than stating it as a rule. A README change runs the same CI job as everything else; `cargo clippy --workspace --all-targets --locked -- -D warnings` is clean locally. Closes #2029. No game data is involved: documentation only. Written with an AI assistant.
The build scripts the tree compiles for itself do not all cope with a long
checkout (#836: blake3's ml64.exe fails around 150 characters; xcl#1118 hit
LNK1104 on a build-script executable). The errors name neither the path nor
the cause, so the fix is worth writing down where people start: a short clone,
a subst mapping, or a short CARGO_TARGET_DIR.

(cherry picked from commit 9cf2d177913f91b2799ee7dbfeacef105252e147)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:52:57 +00:00
github-bot closed this pull request 2026-11-26 04:52:57 +00:00
Author
Owner

@⁠jeremygold02 on GitHub · 2026-11-25 04:10 UTC · original

Triage verdict — Confirmed documentation duplicate of #2044 (9cf2d17)

Evidence

  • @⁠fiestorra and @⁠Creaa both add the #2029 guidance at the same point in the README. Both recommend a shorter checkout or CARGO_TARGET_DIR. #2044 also tells readers where to find victory.exe after the change, which matters because the commands immediately below use target\release. This PR adds the short drive-mapping option from #836. This note · #2044 note

Checks and limits

  • Compared both patches against the same main commit and checked the existing independent dependency build on #2044. It reproduced ml64.exe A1009 by changing only the target path, with the checkout kept short. #2029 also reports a successful build at a checkout length where #836 reported a failure. The checkout lengths describe individual reproductions. The LNK1104 example comes from another repository.

Next step

  • Maintainers could retain #2044 and close this PR after preserving @⁠fiestorra’s drive-mapping workaround if desired. Lead with the observed A1009 error and the short output path, then keep the executable location so the example commands remain usable.

This verification was AI-assisted.

**@⁠jeremygold02** on GitHub · 2026-11-25 04:10 UTC · [original](https://github.com/Marvisak/VIctory/pull/2050#issuecomment-7152592746) **Triage verdict — Confirmed documentation duplicate of #2044** (`9cf2d17`) **Evidence** - @⁠fiestorra and @⁠Creaa both add the #2029 guidance at the same point in the README. Both recommend a shorter checkout or `CARGO_TARGET_DIR`. #2044 also tells readers where to find `victory.exe` after the change, which matters because the commands immediately below use `target\release`. This PR adds the short drive-mapping option from #836. [This note](https://github.com/Marvisak/VIctory/blob/9cf2d177913f91b2799ee7dbfeacef105252e147/README.md#L61-L74) · [#2044 note](https://github.com/Marvisak/VIctory/blob/3348a84d82e97aafbca4fdaeb6bdc9e30d37ea64/README.md#L61-L67) **Checks and limits** - Compared both patches against the same `main` commit and checked the existing [independent dependency build on #2044](https://git.gtahub.st/github/Marvisak--VIctory/pulls/2044). It reproduced `ml64.exe` A1009 by changing only the target path, with the checkout kept short. #2029 also reports a successful build at a checkout length where #836 reported a failure. The checkout lengths describe individual reproductions. The `LNK1104` example comes from another repository. **Next step** - Maintainers could retain #2044 and close this PR after preserving @⁠fiestorra’s drive-mapping workaround if desired. Lead with the observed A1009 error and the short output path, then keep the executable location so the example commands remain usable. This verification was AI-assisted.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 09:21 UTC · original

Automated triage for the maintainers.
Proposed close.

This adds the #2029 short-build-path note to README.md (Getting started, after the MSVC requirement). Open PR #2044 adds a note on the same topic in the same place. #2044 is shorter and merges cleanly. It names the error people actually see (ml64.exe A1009: line too long) and says where victory.exe ends up once CARGO_TARGET_DIR is set, which matters because the commands right below the note use target\release. This PR leaves that out. Its LNK1104 example also comes from another project's issue and has not been reproduced here.

The one thing only this PR has is the subst drive-mapping workaround from #836. It is worth one clause in #2044 if the maintainers want it.

This PR is a duplicate of #2044 and will be closed in 48 hours unless the author pushes a change or a maintainer removes the label.

CI: passing (check).


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 09:21 UTC · [original](https://github.com/Marvisak/VIctory/pull/2050#issuecomment-7158223550) <!-- victory-triage v1 head=9cf2d177913f91b2799ee7dbfeacef105252e147 verdict=proposed-close at=2026-11-25T09:21:27Z --> Automated triage for the maintainers. **Proposed close.** This adds the #2029 short-build-path note to `README.md` (Getting started, after the MSVC requirement). Open PR #2044 adds a note on the same topic in the same place. #2044 is shorter and merges cleanly. It names the error people actually see (`ml64.exe` `A1009: line too long`) and says where `victory.exe` ends up once `CARGO_TARGET_DIR` is set, which matters because the commands right below the note use `target\release`. This PR leaves that out. Its `LNK1104` example also comes from another project's issue and has not been reproduced here. The one thing only this PR has is the `subst` drive-mapping workaround from #836. It is worth one clause in #2044 if the maintainers want it. This PR is a duplicate of #2044 and will be closed in 48 hours unless the author pushes a change or a maintainer removes the label. CI: passing (`check`). --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠fiestorra on GitHub · 2026-11-25 23:35 UTC · original

Closing: #2044 is merged and covers this

#2044 landed on main with the short-build-path note this PR carried, and this branch had already been cut down to the only piece it had that #2044 does not: the subst V: C:\that\long\path drive mapping from #836. Rather than keep a duplicate open, I am closing it here; if the maintainers want the subst clause, it is one sentence in the paragraph #2044 added.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 23:35 UTC · [original](https://github.com/Marvisak/VIctory/pull/2050#issuecomment-7177786773) **Closing: #2044 is merged and covers this** #2044 landed on `main` with the short-build-path note this PR carried, and this branch had already been cut down to the only piece it had that #2044 does not: the `subst V: C:\that\long\path` drive mapping from #836. Rather than keep a duplicate open, I am closing it here; if the maintainers want the `subst` clause, it is one sentence in the paragraph #2044 added. Written with an AI assistant.

Pull request closed

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!2050
No description provided.