aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java
diff options
context:
space:
mode:
authorGravatar Michajlo Matijkiw <michajlo@google.com>2015-04-15 21:28:33 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2015-04-16 18:36:11 +0000
commitac879b96ceeb40679e8d452220d1ec95ad77e830 (patch)
treeeaf40c52aec7951f3b368e6c054e6463ccfccbc5 /src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java
parente49b3bac82a2709d897520997135b816721e0ef8 (diff)
Become more restrictive around Runfiles#manifestExpander
Previously the contract was pretty liberal and could allow addition of extra Artifacts. Create a more restrictive interface allowing the bare minimum- adding empty files to the tree. This makes the contract of Runfiles#getAllArtifacts() more sound, since arbitrary artifacts can't be added, and it makes it easier to figure out what implementations of manifest expansion exist out there. -- MOS_MIGRATED_REVID=91233821
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java b/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java
index ecb8d48b80..e91f7f256c 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java
@@ -100,7 +100,7 @@ public abstract class PyBinary implements RuleConfiguredTargetFactory {
}
builder.addRunfiles(ruleContext, RunfilesProvider.DEFAULT_RUNFILES);
builder.add(ruleContext, PythonRunfilesProvider.TO_RUNFILES);
- builder.setManifestExpander(PythonUtils.GET_INIT_PY_FILES);
+ builder.setEmptyFilesSupplier(PythonUtils.GET_INIT_PY_FILES);
return builder;
}