You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A follow up pr to adding `owner` to `py_image_layer`. This will allow an
us to pass `group` to the image layer for that group ownership
attribution
#545
---
### Changes are visible to end-users: yes
<!-- If no, please delete this section. -->
- Searched for relevant documentation and updated as needed: no
- Breaking change (forces users to change their own code or config): no
- Suggested release notes appear below: no
### Test plan
- Covered by existing test cases
Copy file name to clipboardExpand all lines: py/private/py_image_layer.bzl
+3
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,7 @@ def py_image_layer(
100
100
compute_unused_inputs=1,
101
101
platform=None,
102
102
owner=None,
103
+
group=None,
103
104
**kwargs):
104
105
"""Produce a separate tar output for each layer of a python app
105
106
@@ -130,6 +131,7 @@ def py_image_layer(
130
131
compute_unused_inputs: Whether to compute unused inputs. Default is 1. See: https://github.com/bazel-contrib/bazel-lib/blob/main/docs/tar.md#tar_rule-compute_unused_inputs
131
132
platform: The platform to use for the transition. Default is None. See: https://github.com/bazel-contrib/bazel-lib/blob/main/docs/transitions.md#platform_transition_binary-target_platform
132
133
owner: An owner uid for the uncompressed files. See mtree_mutate: https://github.com/bazel-contrib/bazel-lib/blob/main/docs/tar.md#mutating-the-tar-contents
134
+
group: A group uid for the uncompressed files. See mtree_mutate: https://github.com/bazel-contrib/bazel-lib/blob/main/docs/tar.md#mutating-the-tar-contents
133
135
tar_args: Additional arguments to pass to the tar rule. Default is `[]`. See: https://github.com/bazel-contrib/bazel-lib/blob/main/docs/tar.md#tar_rule-args
134
136
**kwargs: attribute that apply to all targets expanded by the macro
0 commit comments