From bdfb570a42b12f4ef1473f2b52a9a74ba3109789 Mon Sep 17 00:00:00 2001 From: nau Date: Mon, 22 Oct 2012 14:02:05 +0300 Subject: [PATCH] Update compile/inc/Incremental.scala MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix for http://stackoverflow.com/questions/12972183/sbt-always-does-full-rebuild-because-of-modified-binary-dependency-rt-jar def externalBinaryModified uses java.io.File.equals() to check if files are the same. It's better to use File.getCanonicalPath in this case. --- compile/inc/Incremental.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile/inc/Incremental.scala b/compile/inc/Incremental.scala index 1ff154530..b84bdb975 100644 --- a/compile/inc/Incremental.scala +++ b/compile/inc/Incremental.scala @@ -214,7 +214,7 @@ object Incremental e <- entry(name) } yield { val resolved = Locate.resolve(e, name) - (resolved != dependsOn) || !equivS.equiv(previous.binary(dependsOn), current.binary(resolved)) + (resolved.getCanonicalPath != dependsOn.getCanonicalPath) || !equivS.equiv(previous.binary(dependsOn), current.binary(resolved)) } )