Skip to content

Fingerprint shaders from the active Cargo checkout - #820

Draft
Kamiloj9 wants to merge 1 commit into
fxceless:mainfrom
Kamiloj9:codex/active-source-fingerprint
Draft

Kamiloj9 wants to merge 1 commit into
fxceless:mainfrom
Kamiloj9:codex/active-source-fingerprint

Conversation

@Kamiloj9

Copy link
Copy Markdown

Change

Read CARGO_MANIFEST_DIR when Cargo runs the shader fingerprint script. A shared CARGO_TARGET_DIR can reuse a build-script binary compiled in a different checkout. Its compile-time manifest path made the fingerprint describe the other checkout's translator and could reuse stale shader cache entries.

Verification

Reproduced with two actual checkouts and one reused build-script binary. The original binary printed the same source hash for both manifest directories. The corrected binary printed distinct hashes and preserved the original hash for the checkout it previously used. Independent review and staged asset policy passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant