aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupFunction.java
diff options
context:
space:
mode:
authorGravatar Kristina Chodorow <kchodorow@google.com>2015-03-06 19:17:00 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-03-10 13:57:31 +0000
commit5284f324d51c86abd018e63c5e39b93119f18ab5 (patch)
tree60d0f04ff7901d002b6b8a9c77b4988435dcf133 /src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupFunction.java
parent375b881f91e5f158a0c27b857576315bf23e9910 (diff)
Allow BUILD files directly under the build root
This makes the empty package name legal (//:foo). If the empty package is used, this symlinks everything under the build root to the exec root. This includes directories. -- MOS_MIGRATED_REVID=87960882
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupFunction.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupFunction.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupFunction.java
index f800d367c5..9ba197b8d6 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupFunction.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupFunction.java
@@ -54,12 +54,6 @@ class PackageLookupFunction implements SkyFunction {
return computeExternalPackageLookupValue(skyKey, env);
}
PathFragment pkg = packageKey.getPackageFragment();
-
- // This represents a package lookup at the package root.
- if (pkg.equals(PathFragment.EMPTY_FRAGMENT)) {
- return PackageLookupValue.invalidPackageName("The empty package name is invalid");
- }
-
String pkgName = pkg.getPathString();
String packageNameErrorMsg = LabelValidator.validatePackageName(pkgName);
if (packageNameErrorMsg != null) {