Ignore Wine/Proton shader caches (vkd3d-proton, DXVK) #220

Closed
SkippySteve wants to merge 1 commit from upstream-pr/220 into main
SkippySteve commented 2026-11-24 01:34:33 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by SkippySteve on 2026-11-24T01:34:33Z.


Running VIctory under Wine/Proton from a checkout leaves vkd3d-proton / DXVK shader caches in the working directory. Because cargo xtask policy checks untracked-but-not-ignored files too (git ls-files --others --exclude-standard), a stray vkd3d-proton.cache makes the policy check (and the pre-commit hook) fail:

POLICY: vkd3d-proton.cache: file type not on the allowlist
POLICY: vkd3d-proton.cache: binary content (NUL bytes)

Change

  • .gitignore: ignore vkd3d-proton.cache, vkd3d-proton.cache.write, vkd3d_shader_cache/, *.dxvk-cache, next to the other derived-data entries.
  • docs/asset-policy.md: one paragraph under "Where data lives" noting these are derived data and how to redirect them (VKD3D_SHADER_CACHE_PATH, DXVK_STATE_CACHE_PATH).

Testing

  • With dummy binary vkd3d-proton.cache before the change: cargo xtask policy fails as above.
  • After the change, with dummy vkd3d-proton.cache, vkd3d-proton.cache.write, x.dxvk-cache and vkd3d_shader_cache/a present: cargo xtask policy → asset policy: 151 files ok, and git status shows none of them.

No assets or binaries added.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6572586969 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/220). Originally posted by [SkippySteve](https://github.com/SkippySteve) on 2026-11-24T01:34:33Z. --- Running VIctory under Wine/Proton from a checkout leaves vkd3d-proton / DXVK shader caches in the working directory. Because `cargo xtask policy` checks untracked-but-not-ignored files too (`git ls-files --others --exclude-standard`), a stray `vkd3d-proton.cache` makes the policy check (and the pre-commit hook) fail: ``` POLICY: vkd3d-proton.cache: file type not on the allowlist POLICY: vkd3d-proton.cache: binary content (NUL bytes) ``` ## Change - `.gitignore`: ignore `vkd3d-proton.cache`, `vkd3d-proton.cache.write`, `vkd3d_shader_cache/`, `*.dxvk-cache`, next to the other derived-data entries. - `docs/asset-policy.md`: one paragraph under "Where data lives" noting these are derived data and how to redirect them (`VKD3D_SHADER_CACHE_PATH`, `DXVK_STATE_CACHE_PATH`). ## Testing - With dummy binary `vkd3d-proton.cache` before the change: `cargo xtask policy` fails as above. - After the change, with dummy `vkd3d-proton.cache`, `vkd3d-proton.cache.write`, `x.dxvk-cache` and `vkd3d_shader_cache/a` present: `cargo xtask policy` → `asset policy: 151 files ok`, and `git status` shows none of them. No assets or binaries added.
upstream-sync closed this pull request 2026-11-24 06:51:53 +00:00
SkippySteve commented 2026-11-24 06:55:11 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by SkippySteve on 2026-11-24T02:30:19Z.


Folded into #149 (same commit cherry-picked onto docs/linux-proton). Closing as superseded.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7120210084 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/220#issuecomment-7120210084). Originally posted by [SkippySteve](https://github.com/SkippySteve) on 2026-11-24T02:30:19Z. --- Folded into #149 (same commit cherry-picked onto docs/linux-proton). Closing as superseded.

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