Skip to content

Conversation

@KushalP
Copy link
Contributor

@KushalP KushalP commented Jul 21, 2025

This is an attempt to wire up libpkl which is being iterated on here: https://github.com/apple/pkl/tree/c-library

This PR is a draft, and is trying to validate the needs of apple/pkl#993

Development

  1. Build the native library within the c-library branch using ./gradlew clean nativeTest, making sure there are no errors
  2. Expose the built library: export DYLD_LIBRARY_PATH="/path/to/pkl/libpkl/build/native-libs/macos-aarch64:$DYLD_LIBRARY_PATH"
  3. Run the Go tests: go test -v -tags libpkl ./...

Outstanding work

  • Stop skipping tests because they panic
  • Figure out how to libpkl.Close() the native library so we clean up memory
  • Wire up -tags libpkl and fetching libpkl into the CI flow

`userData` is now used to uniquely identify each `PklClient` instance,
and to understand which handler to call for it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant