Skip to content

Commit

Permalink
Some fixes for Scala 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Oct 28, 2023
1 parent 66ad606 commit f8421a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.indoorvivants.vcpkg

import scala.collection.immutable

case class InstalledList private (deps: Vector[Dependency])
class InstalledList private (val deps: Vector[Dependency])

object InstalledList {
def parse(lines: Vector[String], logger: ExternalLogger) = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ trait VcpkgRootInit { self =>
case class VcpkgRoot(file: File, allowBootstrap: Boolean)

object VcpkgRootInit {
case class FromEnv private[vcpkg] (
name: String,
allowBootstrap: Boolean,
env: Map[String, String]
class FromEnv private[vcpkg] (
val name: String,
val allowBootstrap: Boolean,
val env: Map[String, String]
) extends VcpkgRootInit {
override def locate(log: ExternalLogger): Either[String, VcpkgRoot] =
env.get(name) match {
Expand Down Expand Up @@ -80,9 +80,9 @@ object VcpkgRootInit {
s"VcpkgRootInit.Manual[file=$file, allowBootstrap=$allowBootstrap]"
}

case class SystemCache private[vcpkg] (
allowBootstrap: Boolean,
cacheDirDetector: CacheDirDetector
class SystemCache private[vcpkg] (
val allowBootstrap: Boolean,
val cacheDirDetector: CacheDirDetector
) extends VcpkgRootInit {

private val cacheDir = cacheDirDetector.cacheDir
Expand Down

0 comments on commit f8421a2

Please sign in to comment.