Skip to content

Test registry-enabled plugins depend on registry-enabled plugins#2368

Merged
stefanvanburen merged 3 commits intomainfrom
svanburen/registry-test
Mar 31, 2026
Merged

Test registry-enabled plugins depend on registry-enabled plugins#2368
stefanvanburen merged 3 commits intomainfrom
svanburen/registry-test

Conversation

@stefanvanburen
Copy link
Copy Markdown
Member

@stefanvanburen stefanvanburen commented Mar 31, 2026

We want to ensure that any plugin that ends up with registry configuration only depends on plugins that also have registry configuration (for that same registry).

This caught a few past plugins that violate that (b9abdd2), that we aren't planning to go back and update at this point, to demonstrate that the test works.

We shouldn't add to this list, but we also aren't planning to go back to
patch these particular plugin versions.
@stefanvanburen stefanvanburen marked this pull request as ready for review March 31, 2026 20:31
case p.Registry.Cmake != nil:
return "cmake"
default:
return ""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we fail if we get here (to make sure we keep this test up to date)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a little gnarly, but tried it with reflect: b0be09a. Wish there was a better linter for this, but I don't think exhaustruct would work here and didn't see anything else.

Copy link
Copy Markdown
Member

@cyinma cyinma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome!

@stefanvanburen stefanvanburen enabled auto-merge (squash) March 31, 2026 20:56
@stefanvanburen stefanvanburen merged commit bcd84a2 into main Mar 31, 2026
2 checks passed
@stefanvanburen stefanvanburen deleted the svanburen/registry-test branch March 31, 2026 20:57
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.

3 participants