mirror of
https://github.com/sbt/sbt.git
synced 2026-09-04 16:54:29 +02:00
Fixes scripted source-dependencies/inherited-macros
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Check that a file has not been recompiled during last compilation
|
||||
InputKey[Unit]("check-not-recompiled") <<= inputTask { (argTask: TaskKey[Seq[String]]) =>
|
||||
(argTask, compile in Compile) map { (args: Seq[String], a: sbt.inc.Analysis) =>
|
||||
(argTask, compile in Compile) map { (args: Seq[String], a: Analysis) =>
|
||||
assert(args.size == 1)
|
||||
val fileCompilation = a.apis.internal.collect { case (file, src) if file.name.endsWith(args(0)) => src.compilation }.head
|
||||
val lastCompilation = a.compilations.allCompilations.last
|
||||
|
||||
Reference in New Issue
Block a user