Skip to content

fix: install-script parsing reads every line it can when one line does not parse - #69

Merged
alsoknownaswill merged 1 commit into
mainfrom
pub-parse-prefix
Nov 3, 2026
Merged

alsoknownaswill merged 1 commit into
mainfrom
pub-parse-prefix

Conversation

@alsoknownaswill

Copy link
Copy Markdown
Member

A correctness fix to install-script parsing. A line the reader could not parse used to stop the scan of the whole install script. The scan now reads the lines it can, widens for the part it cannot read, and keeps the cost linear on long lines.

Adds tests for quoting, substitutions, heredocs, loader variables and an unchanged package staying quiet. Full suite and type check pass.

…s not parse

A line the reader could not parse used to stop the scan of the whole install script. The scan now reads the lines it can, widens for the part it cannot read, and keeps the cost linear on long lines. Adds tests for quoting, substitutions, heredocs, loader variables and an unchanged package staying quiet.
@alsoknownaswill
alsoknownaswill merged commit 37a239a into main Nov 3, 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.

1 participant