apple / pkl

A configuration as code language with rich validation and tooling.
https://pkl-lang.org
Apache License 2.0
9.84k stars 259 forks source link

Handle explicit CWD reference in project resolving #544

Closed holzensp closed 1 week ago

holzensp commented 1 week ago

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.

holzensp commented 1 week ago

That's a fair shout. Adjusted accordingly.