<#19687 `experimental_wrap_as` targets don't carry...
# github-notifications
c
#19687 `experimental_wrap_as` targets don't carry along the dependencies in all scenarios Issue created by thejcannon Describe the bug Since the
WrapSourceInputsField
is a
SpecialCasedDependencies
, we don't always consume the dependencies of the input. As an example:
Copy code
resource(name="foo", source="foo")
file(name="bar", source="bar", dependencies=[":foo"])
experimental_wrap_as_resources(name="baz", input=[":bar"])

# This test won't have `foo` in the sandbox, even though `pants paths --from=:test --to=:foo` yields a path
python_test(name="test", source="my_test.py", dependencies=[":baz"])
Pants version 2.16.x pantsbuild/pants