-
Notifications
You must be signed in to change notification settings - Fork 353
Change loading of external readers #1394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
pkl-core/src/main/java/org/pkl/core/evaluatorSettings/PklEvaluatorSettings.java
Outdated
Show resolved
Hide resolved
This introduces breaking changes for external readers are loaded: 1. In PklProject, relative paths are resolved relative to the enclosing PklProject file (make behavior consistent with how other settings work) 2. Prevent external readers from being set for non-file based PklProject 3. Make CLI flags blow away any settings set on a PklProject The overall goal is to make this behavior consistent with how other settings work. For example, relative paths for other evaluator settings are already relative to the project directory. Additionally, in every other case, CLI flags will overwrite any setting set within PklProject.
2ada6e5 to
09218e7
Compare
stdlib/EvaluatorSettings.pkl
Outdated
| /// The enclosing URI used to resolve relative paths. | ||
| @Since { version = "0.31.0" } | ||
| hidden enclosingUri: String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this used anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, nope, good catch!
stdlib/Project.pkl
Outdated
| @Since { version = "0.27.0" } | ||
| fixed annotations: List<Annotation> = reflect.moduleOf(this).annotations | ||
|
|
||
| /// Machiney for URI percent decoding. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// Machiney for URI percent decoding. | |
| /// Machinery for URI percent decoding. |
HT154
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo the above comments, approving to unblock
stackoverflow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This introduces breaking changes for external readers are loaded:
The overall goal is to make this behavior consistent with how other settings work.
For example, relative paths for other evaluator settings are already relative to the project directory.
Additionally, in every other case, CLI flags will overwrite any setting set within PklProject.
[windows]