aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/PackageFunction.java
diff options
context:
space:
mode:
authorGravatar Nathan Harmata <nharmata@google.com>2016-10-18 08:55:17 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2016-10-18 10:59:23 +0000
commitd4f75941a98e2ee9e5ae3f8e87d6c4aab3e5eb96 (patch)
tree9c9b01908dd365f6e20ca34fe7fd81b929376c66 /src/main/java/com/google/devtools/build/lib/skyframe/PackageFunction.java
parent69c98ab99563e0542cd6146de22a397679c67fdb (diff)
*** Reason for rollback *** -- MOS_MIGRATED_REVID=136448178
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/PackageFunction.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/PackageFunction.java18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/PackageFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/PackageFunction.java
index 9db19e5b4e..4573a511e9 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/PackageFunction.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/PackageFunction.java
@@ -221,8 +221,7 @@ public class PackageFunction implements SkyFunction {
Iterable<SkyKey> depKeys,
Environment env,
boolean packageWasInError)
- throws InternalInconsistentFilesystemException, FileOutsidePackageRootsException,
- SymlinkOutsidePackageRootsException, InterruptedException {
+ throws InternalInconsistentFilesystemException, InterruptedException {
Preconditions.checkState(
Iterables.all(depKeys, SkyFunctions.isSkyFunction(SkyFunctions.FILE)), depKeys);
boolean packageShouldBeInError = packageWasInError;
@@ -231,8 +230,6 @@ public class PackageFunction implements SkyFunction {
FileSymlinkException.class, InconsistentFilesystemException.class).entrySet()) {
try {
entry.getValue().get();
- } catch (FileOutsidePackageRootsException | SymlinkOutsidePackageRootsException e) {
- throw e;
} catch (IOException e) {
maybeThrowFilesystemInconsistency(packageIdentifier, e, packageWasInError);
} catch (FileSymlinkException e) {
@@ -254,8 +251,7 @@ public class PackageFunction implements SkyFunction {
Iterable<SkyKey> depKeys,
Environment env,
boolean packageWasInError)
- throws InternalInconsistentFilesystemException, FileOutsidePackageRootsException,
- SymlinkOutsidePackageRootsException, InterruptedException {
+ throws InternalInconsistentFilesystemException, InterruptedException {
Preconditions.checkState(
Iterables.all(depKeys, SkyFunctions.isSkyFunction(SkyFunctions.GLOB)), depKeys);
boolean packageShouldBeInError = packageWasInError;
@@ -265,8 +261,6 @@ public class PackageFunction implements SkyFunction {
FileSymlinkException.class, InconsistentFilesystemException.class).entrySet()) {
try {
entry.getValue().get();
- } catch (FileOutsidePackageRootsException | SymlinkOutsidePackageRootsException e) {
- throw e;
} catch (IOException | BuildFileNotFoundException e) {
maybeThrowFilesystemInconsistency(packageIdentifier, e, packageWasInError);
} catch (FileSymlinkException e) {
@@ -294,8 +288,7 @@ public class PackageFunction implements SkyFunction {
Map<Label, Path> subincludes,
PackageIdentifier packageIdentifier,
boolean containsErrors)
- throws InternalInconsistentFilesystemException, FileOutsidePackageRootsException,
- SymlinkOutsidePackageRootsException, InterruptedException {
+ throws InternalInconsistentFilesystemException, InterruptedException {
boolean packageShouldBeInError = containsErrors;
// TODO(bazel-team): This means that many packages will have to be preprocessed twice. Ouch!
@@ -550,11 +543,6 @@ public class PackageFunction implements SkyFunction {
throw new PackageFunctionException(
e.toNoSuchPackageException(),
e.isTransient() ? Transience.TRANSIENT : Transience.PERSISTENT);
- } catch (FileOutsidePackageRootsException | SymlinkOutsidePackageRootsException e) {
- packageFunctionCache.invalidate(packageId);
- throw new PackageFunctionException(
- new NoSuchPackageException(packageId, "Encountered file outside package roots", e),
- Transience.PERSISTENT);
}
if (env.valuesMissing()) {
return null;