Skip to content

Commit 4acbccd

Browse files
committed
Repro case for aspect-build#455
1 parent f22eff9 commit 4acbccd

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

examples/py_binary/BUILD.bazel

+22-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,28 @@
1+
load("@rules_python//python:defs.bzl", upstream_py_binary = "py_binary")
12
load("//py:defs.bzl", "py_binary")
23

34
py_binary(
45
name = "py_binary",
56
srcs = ["say.py"],
6-
deps = [
7-
"@pypi_cowsay//:pkg",
8-
],
7+
)
8+
9+
py_binary(
10+
name = "py_binary2",
11+
srcs = ["say.py"],
12+
data = [":py_binary"],
13+
env = {"FOO": "$(execpath :py_binary)"},
14+
)
15+
16+
upstream_py_binary(
17+
name = "upstream_py_binary",
18+
srcs = ["say.py"],
19+
main = "say.py",
20+
)
21+
22+
upstream_py_binary(
23+
name = "upstream_py_binary2",
24+
srcs = ["say.py"],
25+
main = "say.py",
26+
data = [":upstream_py_binary"],
27+
env = {"FOO": "$(execpath :upstream_py_binary)"},
928
)

0 commit comments

Comments
 (0)