Skip to content

Add labels to plugin_repo build defs - #3650

Merged
SpangleLabs merged 2 commits into
thought-machine:masterfrom
SpangleLabs:INFRA-90975-add-labels-to-plugin-def
Nov 4, 2026
Merged

SpangleLabs merged 2 commits into
thought-machine:masterfrom
SpangleLabs:INFRA-90975-add-labels-to-plugin-def

Conversation

@SpangleLabs

Copy link
Copy Markdown
Contributor

We would like to track these a bit better via labels (specifically for dependency metadata), but first we need these to be able to take labels. So, let's add a labels parameter to plugin_repo

@peterebden peterebden left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

okay I see given the test failure - subrepo isn't a build target itself so it doesn't have labels. You probably want them on one of the others, maybe the remote_file?

@SpangleLabs

Copy link
Copy Markdown
Contributor Author

okay I see given the test failure - subrepo isn't a build target itself so it doesn't have labels. You probably want them on one of the others, maybe the remote_file?

Yeah, I did debate which target to add it on, I suppose it doesn't matter much which one it is for my purposes.
I'll move it over to the remote file

@SpangleLabs
SpangleLabs merged commit 751a3f2 into thought-machine:master Nov 4, 2026
16 checks passed
SpangleLabs added a commit that referenced this pull request Nov 5, 2026
The extract_rule overrides the remote_rule, which means the labels for
the remote_rule will never be seen. We need instead to set the labels on
the extract_rule, so we actually get the resulting labels. We can't put
them on the subrepo rule because it's not a real rule in the same way.
But that also means we don't have to worry about the subrepo overriding
it from the extract rule

This is a fix for my last PR, #3650 , basically

Co-authored-by: roselyn <roselyn@thoughtmachine.net>
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