mirror of https://github.com/sbt/sbt.git
Fixes scripted source-dependencies/inherited-macros
This commit is contained in:
parent
08515c3329
commit
98dfeda7c3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue