bazel-contrib / rules_oci

Bazel rules for building OCI containers
Apache License 2.0
305 stars 159 forks source link

feat: Output the image id of an oci_load target. #715

Open gonzojive opened 1 month ago

gonzojive commented 1 month ago

Not the most elegant starlark, so this is a draft not meant for review, but it demos how to compute the image id.

Fixes https://github.com/bazel-contrib/rules_oci/issues/617

thesayyn commented 1 month ago

Thank you, nice to see you again :)

We'd want this to be subtarget that simply uses jq rule, also this is a breaking change since it adds more fields to defaultinfo which will break people who are using $(location) etc.

thesayyn commented 1 week ago

hey @gonzojive do you want to finish this PR?