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

Closed
fiestorra wants to merge 1 commit from upstream-pr/2050 into main
fiestorra commented 2026-11-25 04:07:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-25T04:07:05Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6596980213 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2050). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-25T04:07:05Z. --- **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.
catminou4 commented 2026-11-25 05:05:46 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T04:17:36Z.

Review: COMMENTED


Static review only: README/docs change — no code.

Short Windows build path + what failures look like — overlaps with #2044; this one is broader (adds failure examples). Pick one or merge both sections.

<!-- greyfinch-sync:Marvisak/VIctory:review:6051789745 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2050#pullrequestreview-6051789745). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T04:17:36Z. **Review:** COMMENTED --- Static review only: README/docs change — no code. Short Windows build path + what failures look like — **overlaps with #2044**; this one is broader (adds failure examples). Pick one or merge both sections.
jeremygold02 commented 2026-11-25 05:06:14 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-25T04:10:09Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152592746 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2050#issuecomment-7152592746). Originally posted by [jeremygold02](https://github.com/jeremygold02) on 2026-11-25T04:10:09Z. --- **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://github.com/Marvisak/VIctory/pull/2044#issuecomment-7152544064). 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.
Marvisak commented 2026-11-25 10:07:41 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T09:21:35Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7158223550 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2050#issuecomment-7158223550). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T09:21:35Z. --- <!-- 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)_
upstream-sync closed this pull request 2026-11-26 00:01:36 +00:00
fiestorra commented 2026-11-26 00:03:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-25T23:35:57Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7177786773 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2050#issuecomment-7177786773). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-25T23:35:57Z. --- **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

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!2048
No description provided.