mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
[PR #1124] [MERGED] Expose version of Pkl within native library using pkl_version
#897
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/1124
Author: @KushalP
Created: 7/14/2025
Status: ✅ Merged
Merged: 7/14/2025
Merged by: @KushalP
Base:
c-library← Head:c-library-version📝 Commits (2)
a7b898bBe consistent: useuserDataas parameter name, as per SPICE7b31fd0Expose version of Pkl within native library usingpkl_version📊 Changes
5 files changed (+34 additions, -2 deletions)
View changed files
📝
libpkl/src/main/c/pkl.c(+6 -2)📝
libpkl/src/main/c/pkl.h(+7 -0)📝
libpkl/src/main/java/org/pkl/libpkl/LibPkl.java(+11 -0)📝
libpkl/src/nativeTest/kotlin/org/pkl/libpkl/LibPklJNA.kt(+2 -0)📝
libpkl/src/nativeTest/kotlin/org/pkl/libpkl/LibPklTest.kt(+8 -0)📄 Description
This allows consumers of the native library to know which version of Pkl they're using, e.g. to build version-specific gates around newer functionality.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.