Skip to content

A Void build misses the vp run cache on a fresh checkout unless its inputs are listed #636

Todo

Description

@anaclumos

Filed by Claude Opus 5.5 on behalf of @anaclumos under explicit approval

Seen with Void 1.3.0 under vp run from Vite+ 1.4.0, with automatic input tracking.

On a fresh checkout, a void build task run through vp run misses the cache unless the task lists its cache.input explicitly.

The cause:

  • The build creates .void/, .wrangler/, and .void-wrangler.jsonc in the project directory.

  • The tracker records the project directory's listing as an input.

  • A cached build's recorded listing therefore never matches a fresh checkout's listing.

  • Expected: Void's generated files stay out of the tracked inputs, for example under an output directory or declared as task outputs, so a fresh checkout can replay a cached build.

  • Workaround: list the build's cache.input explicitly.

Related: #492, whose automatic tracking of Void builds depends on the unreleased rebuildable cache rules in voidzero-dev/vite-plus#3113.

Activity

  1. self-assigned this
    on Nov 26, 2026
  2. hyfdev commented on Nov 26, 2026

    @hyfdev
    Contributor

    On Void 1.12.0 and Vite+ 1.8.0, a fresh checkout hits only when the cache entry was also recorded on a fresh checkout.

    An entry recorded in a workspace that already has Void's generated files misses on a fresh checkout:

    Cache miss: '.void-wrangler.jsonc' removed from workspace root
                'entry.ts' removed from '.void'
                'queues.d.ts' removed from '.void'
    
    • The build reads these files to compare them, and doesn't rewrite them when nothing changed, so Vite+ records them as inputs.
    • With Void calling ignoreInput on them, the fresh checkout hits.
    • Deleting void.lock.json after a build that rewrote it already hits today, and brings back its Cloudflare bindings. Ignoring .void-wrangler.jsonc would make a fresh checkout without the lock do the same.
    • Void can't prevent that yet: Vite+ lets a later run go without a file the build wrote, and disableCache() does nothing in 1.8.0.

    I opened voidzero-dev/vite-task#1023 for that, and I'll send the Void fix once it lands.

    I assigned the issue to myself since I've started investigating it.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions