Skip to content

fix: convert duplicate YAML merge key panic to diagnostic error#5188

Merged
denik merged 4 commits intomainfrom
denik/merge-node-already-set
May 6, 2026
Merged

fix: convert duplicate YAML merge key panic to diagnostic error#5188
denik merged 4 commits intomainfrom
denik/merge-node-already-set

Conversation

@denik
Copy link
Copy Markdown
Contributor

@denik denik commented May 6, 2026

Better error for #5182

denik added 2 commits May 6, 2026 10:52
Replacing the panic with a LocationError that carries the source
location, then converting it to a diagnostic in LoadFromBytes so the
output shows the file/line/column and a clear explanation of what is
not allowed and how to fix it.

Co-authored-by: Isaac
@denik denik temporarily deployed to test-trigger-is May 6, 2026 09:42 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is May 6, 2026 09:42 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is May 6, 2026 09:46 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is May 6, 2026 09:46 — with GitHub Actions Inactive
@denik denik marked this pull request as ready for review May 6, 2026 11:01
@denik denik temporarily deployed to test-trigger-is May 6, 2026 11:03 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is May 6, 2026 11:03 — with GitHub Actions Inactive
@denik denik merged commit 360b53a into main May 6, 2026
29 of 30 checks passed
@denik denik deleted the denik/merge-node-already-set branch May 6, 2026 14:09
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