Skip to content

Commit

Permalink
Fix sbinary cache limit when caching doc inputs
Browse files Browse the repository at this point in the history
Cache the classpath as Seq[File] rather than String in RawCompileLike.
  • Loading branch information
pvlugter authored and eed3si9n committed Nov 19, 2014
1 parent 416ffa7 commit 5704e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/actions/src/main/scala/sbt/RawCompileLike.scala
Expand Up @@ -38,8 +38,8 @@ object RawCompileLike {
def cached(cache: File, doCompile: Gen): Gen = cached(cache, Seq(), doCompile)
def cached(cache: File, fileInputOpts: Seq[String], doCompile: Gen): Gen = (sources, classpath, outputDirectory, options, maxErrors, log) =>
{
type Inputs = FilesInfo[HashFileInfo] :+: FilesInfo[ModifiedFileInfo] :+: String :+: File :+: Seq[String] :+: Int :+: HNil
val inputs: Inputs = hash(sources.toSet ++ optionFiles(options, fileInputOpts)) :+: lastModified(classpath.toSet) :+: classpath.absString :+: outputDirectory :+: options :+: maxErrors :+: HNil
type Inputs = FilesInfo[HashFileInfo] :+: FilesInfo[ModifiedFileInfo] :+: Seq[File] :+: File :+: Seq[String] :+: Int :+: HNil
val inputs: Inputs = hash(sources.toSet ++ optionFiles(options, fileInputOpts)) :+: lastModified(classpath.toSet) :+: classpath :+: outputDirectory :+: options :+: maxErrors :+: HNil
implicit val stringEquiv: Equiv[String] = defaultEquiv
implicit val fileEquiv: Equiv[File] = defaultEquiv
implicit val intEquiv: Equiv[Int] = defaultEquiv
Expand Down

0 comments on commit 5704e31

Please sign in to comment.