Skip to content

feat: Add platform attr to per_file rule - #319

Merged
furtib merged 1 commit into
Ericsson:mainfrom
furtib:version-spec-attr-fix
Sep 23, 2026
Merged

furtib merged 1 commit into
Ericsson:mainfrom
furtib:version-spec-attr-fix

Conversation

@furtib

@furtib furtib commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Why:
We want the per_file rule to be a drop-in replacement for the monolithic rule.
For this, every attribute of the monolithic rule should be supported in the per_file rule too.

What:

  • Added a platform attribute to per_file.

Addresses:
none

@furtib
furtib requested a review from Szelethus August 27, 2026 09:26
@furtib furtib self-assigned this Aug 27, 2026
@furtib furtib added the enhancement New feature or request label Aug 27, 2026
@furtib
furtib force-pushed the version-spec-attr-fix branch from 28a4821 to 08027e3 Compare August 27, 2026 09:27

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

The PR is mostly trivial, just a question about older bazel versions.

Comment thread src/per_file.bzl
@furtib
furtib requested a review from Szelethus September 22, 2026 11:18

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

LGTM, though we should eventually shed the overhead of bazel 6. Might be nicer to do it before landing this, but it doesn't matter much. Lets land it.

@furtib
furtib force-pushed the version-spec-attr-fix branch from 08027e3 to 5e1c83c Compare September 23, 2026 13:24
@furtib furtib changed the title feat: Add platform to per_file rule feat: Add platform attr to per_file rule Sep 23, 2026
@furtib
furtib merged commit 6e9430e into Ericsson:main Sep 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants