Skip to content

Build graph cache keeps a deleted source as a declared input (missing declared input, then a false dependency cycle) #2484

Closed as not planned

Description

@ehartford

Found during D30 R3 (2026-10-20). Sequence in a worktree:

  1. Add rt/bundle.w, run src/main build :dev (green; the graph cache records the enumerated compiler-source inputs, rt/bundle.w among them).
  2. rm rt/bundle.w.
  3. src/main build :dev fails: error: action target 'compat-runtime-source' missing declared input: .../rt/bundle.w then error: build.w targets wait on one another: none of the remaining targets is ready (a dependency cycle); the second message is false, the first is stale.

out/.build-state/build-graph.cache (and the .state files of compiler-no-c-export, compat-runtime-source, stage1) still name the file. Deleting those four files and rerunning is green. The cached graph enumerates directory listings (target_with_compiler_source_inputs) but is not invalidated when a listed file disappears; a deleted module in src/ or rt/ reproduces it in ordinary use. The cache should key on the listings it enumerated (or replan on a missing input) rather than refuse, and the cycle message should not follow a missing-input failure.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): closing as a duplicate of #2452, which has the same mechanism (the graph cache keeps a deleted source as a declared input) and a minimal repro. Carried over from this report: after the missing-input error, the driver also printed a false "build.w targets wait on one another: none of the remaining targets is ready (a dependency cycle)".

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions