You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(build.mcpp): ask the prerequisite question before the cache is consulted
Self-review found the refusal sitting after the cache fast path returns.
Withdrawing `reexport = true` from an edge leaves the module set and every
interface hash identical, so nothing in `compilerIdentity` moves -- the cached
program would be replayed and the now-illegal import would never be reported.
Measured: it fires anyway today, because `ctxHash` happens to change too. That
is an incidental coupling between two keys that answer different questions, and
this codebase has paid for that shape repeatedly. Adding `importable` to the
cache identity would have been a second place deriving the same decision;
asking before the cache is consulted needs no key at all.
`srcText` is hoisted to where the check now lives and read once.
e2e 311 gains a section that runs on a warm cache, with the measurement above
written into it: the assertion pins the behaviour, and the placement is what
makes it hold.
0 commit comments