aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-02-09 21:20:11 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-09 22:43:00 -0500
commite8673866b79f7473391dcee26243eee80d5d3cb6 (patch)
tree16146affeebdb58cd302a1f8527220c906818c96 /libraries
parentbee13ba7a4458482ce00a5c6bae4cd64328c4e5e (diff)
downloadcbt-e8673866b79f7473391dcee26243eee80d5d3cb6.tar.gz
cbt-e8673866b79f7473391dcee26243eee80d5d3cb6.tar.bz2
cbt-e8673866b79f7473391dcee26243eee80d5d3cb6.zip
idempotent change propagation
using lastModified instead of a non-idempotent needsUpdate flag this fixes a bug where dependees would not be rebuilt if cbt exited or was killed after dependencies were already rebuilt.
Diffstat (limited to 'libraries')
-rw-r--r--libraries/eval/build/build.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/eval/build/build.scala b/libraries/eval/build/build.scala
index 8dcaabd..7135d3f 100644
--- a/libraries/eval/build/build.scala
+++ b/libraries/eval/build/build.scala
@@ -2,7 +2,7 @@ import cbt._
class Build(val context: Context) extends BaseBuild{
outer =>
override def dependencies = super.dependencies :+
- new ScalaCompilerDependency( context.cbtHasChanged, context.paths.mavenCache, scalaVersion )
+ new ScalaCompilerDependency( context.cbtLastModified, context.paths.mavenCache, scalaVersion )
override def test: Option[ExitCode] = Some{
new BasicBuild(context.copy(projectDirectory = projectDirectory ++ "/test")) with ScalaTest{