Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Transition oci_image_index into a macro with additional [name].digest target #742

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

mislavmandaricaxilis
Copy link
Contributor

Related issue #735.

Since oci_image_index was a rule directly exposed in defs.bzl, I had to introduce a new macro. I opted to make it in the same way as oci_index, by using the oci_index_image name for the macro, while renaming the existing rule as oci_index_image_rule. I'm not sure if this kind of change would be considered a breaking change or not.

Please review if you find this kind of change from a rule to a macro acceptable or not. If not, I can expose this new macro with a different name (if you have any suggestions on what name to use, I'm all ears 😅) keeping the old rule unchanged.

Copy link
Collaborator

@alexeagle alexeagle left a comment

Choose a reason for hiding this comment

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

nicely done :)
Not a breaking change since macros are isomorphic with rules (callsite cannot distinguish)

@alexeagle alexeagle merged commit 843eb01 into bazel-contrib:main Dec 12, 2024
14 checks passed
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