[PR #544] [MERGED] Handle explicit CWD reference in project resolving #614

Closed
opened 2025-12-30 01:25:40 +01:00 by adam · 0 comments
Owner

📋 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: mainHead: issue531


📝 Commits (1)

  • a21e7e1 Resolve 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 ./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>
adam added the pull-request label 2025-12-30 01:25:40 +01:00
adam closed this issue 2025-12-30 01:25:40 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#614