When specifying a directory instead of a file for the output, pkl won't crash anymore, but instead output an error message, suggesting --multiple-file-output-path.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/apple/pkl/pull/1038
**Author:** [@JeroenSoeters](https://github.com/JeroenSoeters)
**Created:** 4/8/2025
**Status:** ✅ Merged
**Merged:** 4/8/2025
**Merged by:** [@bioball](https://github.com/bioball)
**Base:** `main` ← **Head:** `suggest-multiple-file-output-path`
---
### 📝 Commits (2)
- [`e418f5b`](https://github.com/apple/pkl/commit/e418f5ba0b1d05db4f0275b1e31da4aed5dc413c) Do not crash, but suggest '--multiple-file-output-path' when specifying a directory as output file
- [`ac6f3cd`](https://github.com/apple/pkl/commit/ac6f3cd4188c684d3729b57297717abac3aa80d1) Add test
### 📊 Changes
**2 files changed** (+40 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `pkl-cli/src/main/kotlin/org/pkl/cli/CliEvaluator.kt` (+7 -0)
📝 `pkl-cli/src/test/kotlin/org/pkl/cli/CliEvaluatorTest.kt` (+33 -0)
</details>
### 📄 Description
This PR fixes https://github.com/apple/pkl/issues/989
When specifying a directory instead of a file for the output, `pkl` won't crash anymore, but instead output an error message, suggesting `--multiple-file-output-path`.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1038
Author: @JeroenSoeters
Created: 4/8/2025
Status: ✅ Merged
Merged: 4/8/2025
Merged by: @bioball
Base:
main← Head:suggest-multiple-file-output-path📝 Commits (2)
e418f5bDo not crash, but suggest '--multiple-file-output-path' when specifying a directory as output fileac6f3cdAdd test📊 Changes
2 files changed (+40 additions, -0 deletions)
View changed files
📝
pkl-cli/src/main/kotlin/org/pkl/cli/CliEvaluator.kt(+7 -0)📝
pkl-cli/src/test/kotlin/org/pkl/cli/CliEvaluatorTest.kt(+33 -0)📄 Description
This PR fixes https://github.com/apple/pkl/issues/989
When specifying a directory instead of a file for the output,
pklwon't crash anymore, but instead output an error message, suggesting--multiple-file-output-path.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.