Skip to content

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

Open
denik wants to merge 4 commits intomainfrom
denik/merge-node-already-set
Open

fix: convert duplicate YAML merge key panic to diagnostic error#5188
denik wants to merge 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
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Approval status: pending

/acceptance/bundle/ - needs approval

4 files changed
Suggested: @janniklasrose
Also eligible: @pietern, @shreyas-goenka, @andrewnester, @anton-107, @lennartkats-db

/bundle/ - needs approval

Files: bundle/config/root.go
Suggested: @janniklasrose
Also eligible: @pietern, @shreyas-goenka, @andrewnester, @anton-107, @lennartkats-db

General files (require maintainer)

Files: libs/dyn/yamlloader/loader.go
Based on git history:

  • @pietern -- recent work in libs/dyn/yamlloader/

Any maintainer (@andrewnester, @anton-107, @pietern, @shreyas-goenka, @simonfaltum, @renaudhartert-db) can approve all areas.
See OWNERS for ownership rules.

@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
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