mirror of https://github.com/sbt/sbt.git
Fix util-cache cross-compilation
This commit is contained in:
parent
73e3b43683
commit
eba41fb3b0
|
|
@ -64,7 +64,7 @@ final case class FilesInfo[F <: FileInfo] private[sbt] (files: Set[F])
|
|||
object FilesInfo {
|
||||
def empty[F <: FileInfo]: FilesInfo[F] = FilesInfo(Set.empty[F])
|
||||
|
||||
given format[F <: FileInfo: JsonFormat]: JsonFormat[FilesInfo[F]] =
|
||||
implicit def format[F <: FileInfo: JsonFormat]: JsonFormat[FilesInfo[F]] =
|
||||
projectFormat(_.files, (fs: Set[F]) => FilesInfo(fs))
|
||||
|
||||
def full: FileInfo.Style = FileInfo.full
|
||||
|
|
|
|||
|
|
@ -30,8 +30,9 @@ class PlainInput[J: IsoString](input: InputStream, converter: SupportConverter[J
|
|||
val bufferSize = 1024
|
||||
val buffer = new Array[Char](bufferSize)
|
||||
var read = 0
|
||||
while { read = reader.read(buffer, 0, bufferSize); read != -1 } do
|
||||
while ({ read = reader.read(buffer, 0, bufferSize); read != -1 }) {
|
||||
builder.appendAll(buffer, 0, read)
|
||||
}
|
||||
|
||||
builder.toString()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue