mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #1152] [MERGED] Fix encoding for mapping with local members #919
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/1152
Author: @bioball
Created: 7/25/2025
Status: ✅ Merged
Merged: 7/28/2025
Merged by: @bioball
Base:
main← Head:fix-mapping-encoding📝 Commits (1)
82afea7Fix encoding for mapping with local members📊 Changes
5 files changed (+54 additions, -32 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/runtime/VmMapping.java(+21 -15)📝
pkl-core/src/main/java/org/pkl/core/stdlib/base/MappingNodes.java(+1 -15)📝
pkl-server/src/main/kotlin/org/pkl/server/BinaryEvaluator.kt(+1 -1)📝
pkl-server/src/test/files/SnippetTests/input/map.pkl(+6 -0)📝
pkl-server/src/test/files/SnippetTests/output/map.yaml(+25 -1)📄 Description
Fixes an issue where local members are included in the mapping entry count.
Also: avoid re-computing
Mapping.lengthCloses #1151
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.