mirror of https://github.com/sbt/sbt.git
Add cachePath to CompileInputs2 to fix dependency-management/test-artifact
We cannot recover compilation after the path of the Zinc cache changed
This commit is contained in:
parent
47c60bab2e
commit
b1564d4888
|
|
@ -2712,6 +2712,7 @@ object Defaults extends BuildCommon {
|
|||
scalacOptions.value.toVector,
|
||||
javacOptions.value.toVector,
|
||||
c.toVirtualFile(inputs.options.classesDirectory),
|
||||
c.toVirtualFile(inputs.setup.cacheFile.toPath)
|
||||
)
|
||||
},
|
||||
bspCompileTask :=
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ case class CompileInputs2(
|
|||
scalacOptions: Vector[String],
|
||||
javacOptions: Vector[String],
|
||||
outputPath: VirtualFileRef,
|
||||
cachePath: VirtualFileRef
|
||||
)
|
||||
|
||||
object CompileInputs2:
|
||||
|
|
@ -19,7 +20,7 @@ object CompileInputs2:
|
|||
given IsoLList.Aux[
|
||||
CompileInputs2,
|
||||
Vector[HashedVirtualFileRef] :*: Vector[HashedVirtualFileRef] :*: Vector[String] :*:
|
||||
Vector[String] :*: VirtualFileRef :*: LNil
|
||||
Vector[String] :*: VirtualFileRef :*: VirtualFileRef :*: LNil
|
||||
] =
|
||||
LList.iso(
|
||||
{ (v: CompileInputs2) =>
|
||||
|
|
@ -28,17 +29,19 @@ object CompileInputs2:
|
|||
("scalacOptions", v.scalacOptions) :*:
|
||||
("javacOptions", v.javacOptions) :*:
|
||||
("outputPath", v.outputPath) :*:
|
||||
("cachePath", v.cachePath) :*:
|
||||
LNil
|
||||
},
|
||||
{
|
||||
(in: Vector[HashedVirtualFileRef] :*: Vector[HashedVirtualFileRef] :*: Vector[String] :*:
|
||||
Vector[String] :*: VirtualFileRef :*: LNil) =>
|
||||
Vector[String] :*: VirtualFileRef :*: VirtualFileRef :*: LNil) =>
|
||||
CompileInputs2(
|
||||
in.head,
|
||||
in.tail.head,
|
||||
in.tail.tail.head,
|
||||
in.tail.tail.tail.head,
|
||||
in.tail.tail.tail.tail.head
|
||||
in.tail.tail.tail.tail.head,
|
||||
in.tail.tail.tail.tail.tail.head
|
||||
)
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue