Skip to content

Commit

Permalink
fix globs
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayyn committed Nov 12, 2024
1 parent 2ee2264 commit bf8b387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/private/py_image_layer.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ load("@aspect_bazel_lib//lib:tar.bzl", "mtree_spec", "tar")

default_layer_groups = {
# match *only* external pip like repositories that contain the string "site-packages"
"packages": "\\.runfiles/.*/site-packages",
"packages": "\\\\.runfiles/.*/site-packages",
# match *only* external repositories that begins with the string "python"
# e.g. this will match
# `/hello_world/hello_world_bin.runfiles/rules_python~0.21.0~python~python3_9_aarch64-unknown-linux-gnu/bin/python3`
# but not match
# `/hello_world/hello_world_bin.runfiles/_main/python_app`
"interpreter": "\\.runfiles/python.*-.*/",
"interpreter": "\\\\.runfiles/.*python.*-.*/",
}

def _split_mtree_into_layer_groups(name, root, groups, group_names, **kwargs):
Expand Down

0 comments on commit bf8b387

Please sign in to comment.