Skip to content

Commit e277907

Browse files
authored
Fix bash runfiles with rules_shell (#536)
Bazel @ HEAD moved the bash runfiles to rules_shell. In this case accessing just the single file was no longer valid.
1 parent 1445cca commit e277907

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

py/private/py_binary.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ def _py_binary_rule_impl(ctx):
9797
] + virtual_resolution.srcs + virtual_resolution.runfiles,
9898
extra_runfiles = [
9999
site_packages_pth_file,
100-
] + ctx.files._runfiles_lib,
100+
],
101101
extra_runfiles_depsets = [
102+
ctx.attr._runfiles_lib[DefaultInfo].default_runfiles,
102103
venv_toolchain.default_info.default_runfiles,
103104
],
104105
)

py/private/py_venv.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ def _py_venv_rule_imp(ctx):
7171
] + virtual_resolution.srcs + virtual_resolution.runfiles,
7272
extra_runfiles = [
7373
site_packages_pth_file,
74-
] + ctx.files._runfiles_lib,
74+
],
7575
extra_runfiles_depsets = [
76+
ctx.attr._runfiles_lib[DefaultInfo].default_runfiles,
7677
venv_toolchain.default_info.default_runfiles,
7778
],
7879
)

0 commit comments

Comments
 (0)