Skip to content

Reject malformed Bend checkup header imports - #2321

Draft
oxura wants to merge 1 commit into
bendlang:mainfrom
oxura:fix/checkup-malformed-header-20261124
Draft

oxura wants to merge 1 commit into
bendlang:mainfrom
oxura:fix/checkup-malformed-header-20261124

Conversation

@oxura

@oxura oxura commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

A bare import or an import path without an alias used to disappear from --checkup and leave it exiting zero. These now get an error; import Base, trailing comments, and text after the header still work as before.

Fixes #2318.

I ran the CLI with both broken forms and with a valid header followed by a string containing import. The latter still runs the listed module. The Linux repo gate passed 56/56. The site-backed ping gate wasn't run.

- Match the loader header syntax, keep ignoring Base and comments, and fail instead of silently skipping malformed imports.

Fixes bendlang#2318
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.

bend --checkup succeeds after skipping malformed header imports

1 participant