Fix #90: gate view_format with cfg(windows) so victory-gpu builds on Linux #2008

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

@⁠tharun-37 on GitHub · 2026-11-25 02:49 UTC · original
tharun-37:fix/linux-build-view-format → main · +1 −0 · 1 files · 1 commits · closed without merging

host_resource is already cfg(windows); view_format called it on every target, breaking the Linux build (E0425). Gate view_format the same way since its only caller (host_desc) is also cfg(windows).

**@⁠tharun-37** on GitHub · 2026-11-25 02:49 UTC · [original](https://github.com/Marvisak/VIctory/pull/2008) `tharun-37:fix/linux-build-view-format` → `main` · +1 −0 · 1 files · 1 commits · closed without merging host_resource is already cfg(windows); view_format called it on every target, breaking the Linux build (E0425). Gate view_format the same way since its only caller (host_desc) is also cfg(windows).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:51:30 +00:00
github-bot closed this pull request 2026-11-26 04:51:30 +00:00
Author
Owner

@⁠jeremygold02 on GitHub · 2026-11-25 02:59 UTC · original · edited 2026-11-25 03:22 UTC

Triage verdict — Candidate for a focused landing (4202096)

Evidence

  • The one-line #[cfg(windows)] is the right boundary for the first #90 error: main’s view_format calls the Windows-only host_resource. #1017 at d5de72b already contains the identical gate alongside the remaining Linux build fixes.

Checks and limits

  • The green check on 4202096 runs on Windows, so it does not establish that the Linux workspace now builds.

Next step

  • I’d treat this as a separable first-blocker fix. If #1017 lands first, this hunk is covered. If maintainers want to take this independently, keep #90 open until cargo check --workspace --all-targets --locked passes natively on Linux, and drop the repeated hunk when rebasing #1017.

This verification was AI-assisted.

**@⁠jeremygold02** on GitHub · 2026-11-25 02:59 UTC · [original](https://github.com/Marvisak/VIctory/pull/2008#issuecomment-7151482059) · edited 2026-11-25 03:22 UTC **Triage verdict — Candidate for a focused landing** (`4202096`) **Evidence** - The one-line `#[cfg(windows)]` is the right boundary for the first #90 error: [main’s `view_format`](https://github.com/Marvisak/VIctory/blob/940d32f69b22265690a0b5a15d6ded572ba33baf/crates/victory-gpu/src/resource.rs#L279-L287) calls the Windows-only [`host_resource`](https://github.com/Marvisak/VIctory/blob/940d32f69b22265690a0b5a15d6ded572ba33baf/crates/victory-gpu/src/resource.rs#L975-L982). #1017 at `d5de72b` already contains the identical gate alongside the remaining Linux build fixes. **Checks and limits** - The green [check on `4202096`](https://github.com/Marvisak/VIctory/actions/runs/45535684112/job/138941580992) runs on Windows, so it does not establish that the Linux workspace now builds. **Next step** - I’d treat this as a separable first-blocker fix. If #1017 lands first, this hunk is covered. If maintainers want to take this independently, keep #90 open until `cargo check --workspace --all-targets --locked` passes natively on Linux, and drop the repeated hunk when rebasing #1017. This verification was AI-assisted.
Author
Owner

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

Automated triage for the maintainers.
Merge candidate.

crates/victory-gpu/src/resource.rs, view_format: adds #[cfg(windows)]. The function calls host_resource, which is already cfg(windows). Its only callers, descriptor.rs host_desc and descriptor/host.rs (the module itself is cfg(windows)), are Windows-only, so nothing changes on Windows and a non-Windows cargo check no longer fails with E0425. The same hunk appears in many larger open PRs (#1017, #39, #523, #1241 and others). This is the only PR that contains just that hunk, so it is the easiest to land first. Whichever of those PRs lands later then drops the hunk on rebase.

CI: passing (check, Windows only; it does not show that the Linux build succeeds).

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/2008#issuecomment-7158175094) <!-- victory-triage v1 head=4202096cd0382a19447ecbe955b709fb5092d07e verdict=merge-candidate at=2026-11-25T09:19:03Z --> Automated triage for the maintainers. **Merge candidate.** `crates/victory-gpu/src/resource.rs`, `view_format`: adds `#[cfg(windows)]`. The function calls `host_resource`, which is already `cfg(windows)`. Its only callers, `descriptor.rs` `host_desc` and `descriptor/host.rs` (the module itself is `cfg(windows)`), are Windows-only, so nothing changes on Windows and a non-Windows `cargo check` no longer fails with E0425. The same hunk appears in many larger open PRs (#1017, #39, #523, #1241 and others). This is the only PR that contains just that hunk, so it is the easiest to land first. Whichever of those PRs lands later then drops the hunk on rebase. CI: passing (`check`, Windows only; it does not show that the Linux build succeeds). Recommending a look, not approving. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-26 01:37 UTC · original

Code review and Windows 11 check at head 4202096cd038 merged cleanly onto main (63bcca43c6a0):

  • Code review (crates/victory-gpu/src/resource.rs:287):
    • Adding #[cfg(windows)] on view_format is still valid on current main (host_resource is #[cfg(windows)]) and merges cleanly with #2890.
    • Note for maintainers: on its own, this 1-line gate is no longer sufficient to make victory-gpu compile on Linux — #2890 already includes this exact #[cfg(windows)] gate along with the remaining 25-file non-Windows gates across resource.rs and 8 other victory-gpu modules.
  • Verified (Windows 11, Rust 1.98.1):
    • cargo xtask policy: 191 files ok; cargo clippy --locked -p victory-gpu --tests -- -D warnings (default + --features diagnostics): 0 warnings.
**@⁠fuzeofficlal** on GitHub · 2026-11-26 01:37 UTC · [original](https://github.com/Marvisak/VIctory/pull/2008#issuecomment-7179956502) Code review and Windows 11 check at head `4202096cd038` merged cleanly onto `main` (`63bcca43c6a0`): - **Code review (`crates/victory-gpu/src/resource.rs:287`)**: - Adding `#[cfg(windows)]` on `view_format` is still valid on current `main` (`host_resource` is `#[cfg(windows)]`) and merges cleanly with `#2890`. - Note for maintainers: on its own, this 1-line gate is no longer sufficient to make `victory-gpu` compile on Linux — `#2890` already includes this exact `#[cfg(windows)]` gate along with the remaining 25-file non-Windows gates across `resource.rs` and 8 other `victory-gpu` modules. - **Verified (Windows 11, Rust 1.98.1)**: - `cargo xtask policy`: `191 files ok`; `cargo clippy --locked -p victory-gpu --tests -- -D warnings` (default + `--features diagnostics`): 0 warnings.
Author
Owner

@⁠tharun-37 on GitHub · 2026-11-26 03:26 UTC · original

Closing to re-scope: taking on better-scoped issues instead.

**@⁠tharun-37** on GitHub · 2026-11-26 03:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/2008#issuecomment-7181721502) Closing to re-scope: taking on better-scoped issues instead.

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