Bug: bild doesn't aggregate deps from imported local modules

t-273·WorkTask·
·
·
·Omni/Bild.hs
Created2 months ago·Updated1 month ago

Description

Edit

When building a top-level module (e.g., Omni/Ava.hs), bild doesn't aggregate the : dep declarations from imported local modules (e.g., Omni/Agent/Prompts.hs).

Reproduction

1. Omni/Agent/Prompts.hs declares : dep mustache 2. Omni/Ava.hs imports Omni.Agent.Prompts but doesn't declare mustache 3. bild Omni/Ava.hs fails with 'Could not find module Text.Mustache'

Expected Behavior

Bild should transitively include all : dep declarations from imported local modules when computing langdeps for the build.

Current Workaround

Manually add all transitive deps to the top-level module's header.

Affected Code

  • Omni/Bild.hs - dependency resolution logic
  • Omni/Bild/Builder.nix - langdeps handling

Notes

This becomes increasingly painful as the codebase grows and modules are composed. The per-module incremental build (hsGraph) may need to pass the right package set to each module derivation.

Timeline (6)

🔄[human]Open → InProgress1 month ago
💬[human]1 month ago

Updated Haskell import scanning to include transitive : dep metadata from local modules so build langdeps aggregate properly. Build attempt: bild Omni/Bild.hs timed out in 10 minutes.

💬[human]1 month ago

Merged Haskell dep aggregation fix so transitive : dep from local imports are included in langdeps.

🔄[human]InProgress → Done1 month ago