Skip to content

Commit

Permalink
Repro case for aspect-build#455
Browse files Browse the repository at this point in the history
  • Loading branch information
keith committed Dec 2, 2024
1 parent f22eff9 commit 4acbccd
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions examples/py_binary/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
load("@rules_python//python:defs.bzl", upstream_py_binary = "py_binary")
load("//py:defs.bzl", "py_binary")

py_binary(
name = "py_binary",
srcs = ["say.py"],
deps = [
"@pypi_cowsay//:pkg",
],
)

py_binary(
name = "py_binary2",
srcs = ["say.py"],
data = [":py_binary"],
env = {"FOO": "$(execpath :py_binary)"},
)

upstream_py_binary(
name = "upstream_py_binary",
srcs = ["say.py"],
main = "say.py",
)

upstream_py_binary(
name = "upstream_py_binary2",
srcs = ["say.py"],
main = "say.py",
data = [":upstream_py_binary"],
env = {"FOO": "$(execpath :upstream_py_binary)"},
)

0 comments on commit 4acbccd

Please sign in to comment.