diff options
author | Nathan Harmata <nharmata@google.com> | 2015-07-29 01:33:49 +0000 |
---|---|---|
committer | Lukacs Berki <lberki@google.com> | 2015-07-29 16:01:46 +0000 |
commit | ad81050b9419d1b298a3b4e444b7e4d539174bef (patch) | |
tree | 34710060d4d936fd95a5511277a6a9ad5bed87c9 /src/main/java/com/google/devtools/build/lib/skyframe/PackageLookupFunction.java | |
parent | 205a3d67fe5986890270ad99c87ded997a1d5cca (diff) |
Elegantly handle unbounded file symlink resolutions, e.g. 'a' -> 'b' -> 'a/nope'.
--
MOS_MIGRATED_REVID=99337668
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 40bbdb6c7d..5657bccb68 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 @@ -96,7 +96,7 @@ public class PackageLookupFunction implements SkyFunction { FileValue fileValue = null; try { fileValue = (FileValue) env.getValueOrThrow(fileSkyKey, IOException.class, - FileSymlinkCycleException.class, InconsistentFilesystemException.class); + FileSymlinkException.class, InconsistentFilesystemException.class); } catch (IOException e) { // TODO(bazel-team): throw an IOException here and let PackageFunction wrap that into a // BuildFileNotFoundException. @@ -104,7 +104,7 @@ public class PackageLookupFunction implements SkyFunction { "IO errors while looking for " + basename + " file reading " + buildFileRootedPath.asPath() + ": " + e.getMessage(), e), Transience.PERSISTENT); - } catch (FileSymlinkCycleException e) { + } catch (FileSymlinkException e) { throw new PackageLookupFunctionException(new BuildFileNotFoundException(packageIdentifier, "Symlink cycle detected while trying to find " + basename + " file " + buildFileRootedPath.asPath()), |