Referencing the current working directory explicitly (pkl project resolve .) finds ./PklProject as the project file, which normalises back to PklProject (and then has null as a parent). This PR fixes that by applying the same strategy as when using no explicit directory at all.
🔄 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/544
**Author:** [@holzensp](https://github.com/holzensp)
**Created:** 6/19/2024
**Status:** ✅ Merged
**Merged:** 6/25/2024
**Merged by:** [@holzensp](https://github.com/holzensp)
**Base:** `main` ← **Head:** `issue531`
---
### 📝 Commits (1)
- [`a21e7e1`](https://github.com/apple/pkl/commit/a21e7e1626d1cc3abec432e3cf460dc04c499e9a) Resolve project dirs from working dir by default
### 📊 Changes
**1 file changed** (+1 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `pkl-cli/src/main/kotlin/org/pkl/cli/CliProjectCommand.kt` (+1 -1)
</details>
### 📄 Description
Fixes #531
Referencing the current working directory explicitly (`pkl project resolve .`) finds `./PklProject` as the project file, which normalises back to `PklProject` (and then has `null` as a `parent`). This PR fixes that by applying the same strategy as when using no explicit directory at all.
---
<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/544
Author: @holzensp
Created: 6/19/2024
Status: ✅ Merged
Merged: 6/25/2024
Merged by: @holzensp
Base:
main← Head:issue531📝 Commits (1)
a21e7e1Resolve project dirs from working dir by default📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
pkl-cli/src/main/kotlin/org/pkl/cli/CliProjectCommand.kt(+1 -1)📄 Description
Fixes #531
Referencing the current working directory explicitly (
pkl project resolve .) finds./PklProjectas the project file, which normalises back toPklProject(and then hasnullas aparent). This PR fixes that by applying the same strategy as when using no explicit directory at all.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.