Skip to content

Commit

Permalink
Handle empty input for scala-cli builds config
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Jul 7, 2023
1 parent 58be7d9 commit 950e041
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion project-builder/scala-cli/build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import os.CommandResult
configJson: String
): Unit = {
println(s"Build config: ${configJson}")
val config = read[ProjectBuildConfig](configJson)
val config =
if (configJson.isEmpty()) ProjectBuildConfig()
else read[ProjectBuildConfig](configJson)
println(s"Parsed config: ${config}")

val evaluator = CliTaskEvaluator(scalaVersion, repositoryDir)
Expand Down

0 comments on commit 950e041

Please sign in to comment.