diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-09 21:20:11 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-09 22:43:00 -0500 |
commit | e8673866b79f7473391dcee26243eee80d5d3cb6 (patch) | |
tree | 16146affeebdb58cd302a1f8527220c906818c96 /libraries | |
parent | bee13ba7a4458482ce00a5c6bae4cd64328c4e5e (diff) | |
download | cbt-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.scala | 2 |
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{ |