Skip to content

fix: validate missing dependencies and refactor SummaryReader to nullable#8

Merged
mark-dropbear merged 1 commit into
mainfrom
issue/7
Jul 15, 2026
Merged

fix: validate missing dependencies and refactor SummaryReader to nullable#8
mark-dropbear merged 1 commit into
mainfrom
issue/7

Conversation

@mark-dropbear

Copy link
Copy Markdown
Contributor

Implement compile-time validation for missing dependency providers to fail the build runner step early with a descriptive error message.

Also refactors the SummaryReader API to return a nullable LibrarySummary? instead of throwing a FileSystemException when a summary does not exist, allowing resolveKey to use a clean null-check instead of control-flow exception try/catch blocks.

  • Tracks all requested dependencies and throws StateError if any lack a provider.
  • Refactors SummaryReader and mock/fake test implementations to return nullable summaries.
  • Adds a unit test for missing dependency validation.

Closes #7

…able

Implement compile-time validation for missing dependency providers to fail
the build runner step early with a descriptive error message.

Also refactors the `SummaryReader` API to return a nullable `LibrarySummary?`
instead of throwing a `FileSystemException` when a summary does not exist,
allowing `resolveKey` to use a clean null-check instead of control-flow
exception try/catch blocks.

- Tracks all requested dependencies and throws `StateError` if any lack a provider.
- Refactors `SummaryReader` and mock/fake test implementations to return nullable summaries.
- Adds a unit test for missing dependency validation.

Closes #7
@mark-dropbear
mark-dropbear merged commit 1ee85fe into main Jul 15, 2026
1 check 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.

Missing dependency providers silently pass build_runner and cause late compilation errors

1 participant