mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
[PR #493] [CLOSED] Split out base settings in stdlib for reuse #582
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/493
Author: @holzensp
Created: 5/15/2024
Status: ❌ Closed
Base:
main← Head:settings📝 Commits (1)
6d44260Add abstract base module for settings📊 Changes
7 files changed (+104 additions, -10 deletions)
View changed files
➕
pkl-core/src/test/files/LanguageSnippetTests/input/stdlib/settings.pkl(+25 -0)📝
pkl-core/src/test/files/LanguageSnippetTests/output/errors/cannotFindStdLibModule.err(+1 -0)📝
pkl-core/src/test/files/LanguageSnippetTests/output/projects/badProjectDeps4/bug.err(+2 -2)➕
pkl-core/src/test/files/LanguageSnippetTests/output/stdlib/settings.pcf(+6 -0)➕
stdlib/AbstractSettings.pkl(+58 -0)📝
stdlib/Project.pkl(+3 -1)📝
stdlib/settings.pkl(+9 -7)📄 Description
This PR defines
pkl:AbstractSettingsas a common parent module forpkl:settingsandpkl:Project.Since user-level evaluator settings should be limited to user/machine specific ones (to avoid unnecessary "works on my machine"), whereas
PklProjects might want to set more detailed settings.There isn't an overwhelming win from making
pkl:AbstractSettingsa super-module, other thanevaluatorSettings(and possibly other properties in the future) being defined in all children by default. Alternatively,pkl:AbstractSettingscould define allclasses that might be used somewhere, and it just beingimported, i.e.settings.pkl:Project.pkl:🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.