(Translated by https://www.hiragana.jp/)
Resolve project dirs from working dir by default · luuvish/pkl@64bfcfd · GitHub
Skip to content

Commit

Permalink
Resolve project dirs from working dir by default
Browse files Browse the repository at this point in the history
  • Loading branch information
holzensp committed Jun 25, 2024
1 parent 5c950d2 commit 64bfcfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkl-cli/src/main/kotlin/org/pkl/cli/CliProjectCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ abstract class CliProjectCommand(cliOptions: CliBaseOptions, private val project
)
return@lazy listOf(projectFile.normalize())
}
projectDirs.map { dir ->
projectDirs.map(cliOptions.normalizedWorkingDir::resolve).map { dir ->
val projectFile = dir.resolve(PKL_PROJECT_FILENAME)
if (!Files.exists(projectFile)) {
throw CliException("Directory $dir does not contain a PklProject file.")
Expand Down

0 comments on commit 64bfcfd

Please sign in to comment.