Skip to content

Defer .star module load errors until the module is actually used#327

Merged
jp-fizzbee merged 1 commit intomainfrom
user/jp/fix-star-import
Mar 6, 2026
Merged

Defer .star module load errors until the module is actually used#327
jp-fizzbee merged 1 commit intomainfrom
user/jp/fix-star-import

Conversation

@jp-fizzbee
Copy link
Copy Markdown
Collaborator

Instead of panicking immediately when a .star file fails to parse, emit a WARNING and substitute a FailedModule placeholder. The error surfaces with a clear message only if the broken module is referenced at runtime (via Attr()), leaving specs that don't use the bad module unaffected.

Instead of panicking immediately when a .star file fails to parse,
emit a WARNING and substitute a FailedModule placeholder. The error
surfaces with a clear message only if the broken module is referenced
at runtime (via Attr()), leaving specs that don't use the bad module
unaffected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jp-fizzbee jp-fizzbee merged commit 2701198 into main Mar 6, 2026
1 check passed
@jp-fizzbee jp-fizzbee deleted the user/jp/fix-star-import branch March 6, 2026 03:42
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.

2 participants