diff options
author | 2015-12-10 11:34:29 +0000 | |
---|---|---|
committer | 2015-12-10 12:41:41 +0000 | |
commit | e19ee2743966069c6dcce375fe89b07835c34723 (patch) | |
tree | 076446231d61b7467fe20fb620bc022d140cb309 /src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupFunction.java | |
parent | d4b78d0f7c2d3e6714f82538eca30e2414e97fdc (diff) |
Shuffle around all the constants related to the name of the //external package and the prefix of external packages in the execroot.
This is in preparation for renaming that path segment from "external" to "bazel-external" so that we can provide a symlink to it from the source tree so that the source tree looks like the execroot.
--
MOS_MIGRATED_REVID=109882753
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.java | 4 |
1 files changed, 2 insertions, 2 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 36350f5c31..9a53dd317b 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 @@ -14,11 +14,11 @@ package com.google.devtools.build.lib.skyframe; import com.google.common.collect.ImmutableSet; +import com.google.devtools.build.lib.cmdline.Label; import com.google.devtools.build.lib.cmdline.LabelValidator; import com.google.devtools.build.lib.cmdline.PackageIdentifier; import com.google.devtools.build.lib.packages.BuildFileNotFoundException; import com.google.devtools.build.lib.packages.NoSuchPackageException; -import com.google.devtools.build.lib.packages.Package; import com.google.devtools.build.lib.pkgcache.PathPackageLocator; import com.google.devtools.build.lib.syntax.EvalException; import com.google.devtools.build.lib.vfs.Path; @@ -57,7 +57,7 @@ public class PackageLookupFunction implements SkyFunction { if (!packageKey.getRepository().equals(PackageIdentifier.MAIN_REPOSITORY_NAME) && !packageKey.getRepository().isDefault()) { return computeExternalPackageLookupValue(skyKey, env, packageKey); - } else if (packageKey.equals(Package.EXTERNAL_PACKAGE_IDENTIFIER)) { + } else if (packageKey.equals(Label.EXTERNAL_PACKAGE_IDENTIFIER)) { return computeWorkspaceLookupValue(env, packageKey); } |