diff options
author | Robby <robby@k-state.edu> | 2018-04-24 10:42:36 -0500 |
---|---|---|
committer | Robby <robby@k-state.edu> | 2018-04-24 12:02:45 -0500 |
commit | 5593e0c57eb4a85060575e1f78b2aea857adba2d (patch) | |
tree | 980949735ce1412aa6249fcea9601b040418ec3f /core/src | |
parent | 13d026574a5de41c42482d3ef20ab9ec7dd3bc20 (diff) | |
download | mill-5593e0c57eb4a85060575e1f78b2aea857adba2d.tar.gz mill-5593e0c57eb4a85060575e1f78b2aea857adba2d.tar.bz2 mill-5593e0c57eb4a85060575e1f78b2aea857adba2d.zip |
Fixed PathRef's FileVisitor IOException on dir symlinks.
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/mill/eval/PathRef.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/mill/eval/PathRef.scala b/core/src/mill/eval/PathRef.scala index 0fbc18f8..5bac93b2 100644 --- a/core/src/mill/eval/PathRef.scala +++ b/core/src/mill/eval/PathRef.scala @@ -27,6 +27,8 @@ object PathRef{ val digestOut = new DigestOutputStream(DummyOutputStream, digest) jnio.Files.walkFileTree( path.toNIO, + java.util.EnumSet.of(jnio.FileVisitOption.FOLLOW_LINKS), + Integer.MAX_VALUE, new FileVisitor[jnio.Path] { def preVisitDirectory(dir: jnio.Path, attrs: BasicFileAttributes) = { digest.update(dir.toAbsolutePath.toString.getBytes) |