diff options
author | Nathan Harmata <nharmata@google.com> | 2016-10-18 08:55:17 +0000 |
---|---|---|
committer | Philipp Wollermann <philwo@google.com> | 2016-10-18 10:59:23 +0000 |
commit | d4f75941a98e2ee9e5ae3f8e87d6c4aab3e5eb96 (patch) | |
tree | 9c9b01908dd365f6e20ca34fe7fd81b929376c66 /src/main/java/com/google/devtools/build/lib/skyframe/PackageFunction.java | |
parent | 69c98ab99563e0542cd6146de22a397679c67fdb (diff) |
Rollback of commit b776d6c12e952eb358c1a036cc9d93d8944c4c77.
*** 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.java | 18 |
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; |