mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #751] [MERGED] Correct EmbeddedExecutor to throw ExecutorException instead of PklException when project evaluation fails #716
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/751
Author: @HT154
Created: 10/29/2024
Status: ✅ Merged
Merged: 10/30/2024
Merged by: @bioball
Base:
main← Head:executor-exception-consistency📝 Commits (4)
b860e50Correct EmbeddedExecutor to throw ExecutorException instead of PklException when project evaluation fails73afd16Update ExecutorSpiImpl.java3094558Update pkl-executor/src/main/java/org/pkl/executor/EmbeddedExecutor.java5507f54Feed SPI environment variables when loading project📊 Changes
3 files changed (+82 additions, -7 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/service/ExecutorSpiImpl.java(+15 -6)📝
pkl-executor/src/main/java/org/pkl/executor/EmbeddedExecutor.java(+8 -0)📝
pkl-executor/src/test/kotlin/org/pkl/executor/EmbeddedExecutorTest.kt(+59 -1)📄 Description
There are two fixes here:
ExecutorSpiImplnow properly handles project evaluation errorsEmbeddedExecutornow catches allRuntimeExceptions and transforms them toExecutorExceptionso theExecutorAPI contract is upheld.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.