diff --git a/build.sbt b/build.sbt index f2042f50..41d08b74 100644 --- a/build.sbt +++ b/build.sbt @@ -21,8 +21,7 @@ inThisBuild( pgpSecretRing := file("/tmp/secret.asc"), scmInfo := Some( ScmInfo(url("https://github.com/zio/zio-cli/"), "scm:git:git@github.com:zio/zio-cli.git") - ), - dependencyOverrides += "org.scala-lang.modules" %% "scala-collection-compat" % "2.12.0" + ) ) ) diff --git a/zio-cli/jvm/src/main/scala/zio/cli/ConfigFileArgsPlatformSpecific.scala b/zio-cli/jvm/src/main/scala/zio/cli/ConfigFileArgsPlatformSpecific.scala index 3304b95e..03efdf09 100644 --- a/zio-cli/jvm/src/main/scala/zio/cli/ConfigFileArgsPlatformSpecific.scala +++ b/zio-cli/jvm/src/main/scala/zio/cli/ConfigFileArgsPlatformSpecific.scala @@ -23,7 +23,7 @@ object ConfigFileArgsPlatformSpecific extends ConfigFilePlatformSpecific { // Use ZIO to filter the paths for { - doPathExist <- ZIO.foreach(pathsToCheck)(path => ZIO.succeed(Files.exists(Path.of(path, filename)))) + doPathExist <- ZIO.foreach(pathsToCheck)(path => ZIO.succeed(Files.exists(Path.of(path, filename)))) existingPaths = doPathExist.zip(pathsToCheck).collect { case (exists, path) if exists => path } } yield existingPaths.distinct // Use distinct to remove duplicates at the end }