Skip to content

report workspace YAML parse errors - #343

Open
gigitux wants to merge 1 commit into
JamieMason:mainfrom
gigitux:fix/handle-workspace-parse-errors
Open

gigitux wants to merge 1 commit into
JamieMason:mainfrom
gigitux:fix/handle-workspace-parse-errors

Conversation

@gigitux

@gigitux gigitux commented Oct 3, 2026 •

Copy link
Copy Markdown

Description (What)

Fixes #342

Report YAML parse errors when loading pnpm-workspace.yaml, including the parser’s reason, line, and column. Adds a test covering invalid YAML and preservation of the original error.

Justification (Why)

Invalid workspace YAML was silently ignored, allowing Syncpack to continue without the workspace configuration. This change stops execution and surfaces the error so users can fix it.

How Can This Be Tested?

  • Run cargo test parse_yaml_file_strict_returns_error_for_invalid_yaml.
  • Run Syncpack with malformed pnpm-workspace.yaml and confirm it reports the parsing error.

This branch has not been deployed

No deployments
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.

fix: YAML parse errors silently discard pnpm workspace and produce missing-catalog warnings

1 participant