This is technically a breaking change, but follows the intended use-case and documentation of settings.
Require that the global settings file at ~/.pkl/settings.pkl amends stdlib module pkl:settings, or otherwise sets output.value to an instance of pkl.Settings.
Simplify the object mapping of PklSettings.java
🔄 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/477
**Author:** [@bioball](https://github.com/bioball)
**Created:** 5/6/2024
**Status:** ✅ Merged
**Merged:** 5/7/2024
**Merged by:** [@bioball](https://github.com/bioball)
**Base:** `main` ← **Head:** `settings-module-cleanup`
---
### 📝 Commits (1)
- [`a9918aa`](https://github.com/apple/pkl/commit/a9918aa7edf3e1d1a40c7f5742a597b3af683556) Require global settings file to use `pkl:settings`
### 📊 Changes
**5 files changed** (+19 additions, -19 deletions)
<details>
<summary>View changed files</summary>
📝 `pkl-core/src/main/java/org/pkl/core/PClassInfo.java` (+3 -0)
📝 `pkl-core/src/main/java/org/pkl/core/runtime/SettingsModule.java` (+2 -2)
📝 `pkl-core/src/main/java/org/pkl/core/settings/PklSettings.java` (+6 -14)
📝 `pkl-core/src/main/resources/org/pkl/core/errorMessages.properties` (+0 -3)
📝 `pkl-core/src/test/kotlin/org/pkl/core/settings/PklSettingsTest.kt` (+8 -0)
</details>
### 📄 Description
This is technically a breaking change, but follows the intended use-case and documentation of settings.
* Require that the global settings file at `~/.pkl/settings.pkl` amends stdlib module `pkl:settings`, or otherwise sets `output.value` to an instance of `pkl.Settings`.
* Simplify the object mapping of `PklSettings.java`
---
<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/477
Author: @bioball
Created: 5/6/2024
Status: ✅ Merged
Merged: 5/7/2024
Merged by: @bioball
Base:
main← Head:settings-module-cleanup📝 Commits (1)
a9918aaRequire global settings file to usepkl:settings📊 Changes
5 files changed (+19 additions, -19 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/PClassInfo.java(+3 -0)📝
pkl-core/src/main/java/org/pkl/core/runtime/SettingsModule.java(+2 -2)📝
pkl-core/src/main/java/org/pkl/core/settings/PklSettings.java(+6 -14)📝
pkl-core/src/main/resources/org/pkl/core/errorMessages.properties(+0 -3)📝
pkl-core/src/test/kotlin/org/pkl/core/settings/PklSettingsTest.kt(+8 -0)📄 Description
This is technically a breaking change, but follows the intended use-case and documentation of settings.
~/.pkl/settings.pklamends stdlib modulepkl:settings, or otherwise setsoutput.valueto an instance ofpkl.Settings.PklSettings.java🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.