Compare commits

...
10 Commits
Author SHA1 Message Date
Jen Basch 98b6f96b69 Prepare 0.33.1 release 2026-11-18 09:32:31 -08:00
Jen BaschandDaniel Chao f2a301054d Prepare 0.33.1 release (#1994)
Co-authored-by: Daniel Chao <daniel.h.chao@gmail.com>
2026-11-18 09:29:13 -08:00
Daniel Chao 91e9ff92d0 Add publications for pkl-server and pkl-profiler (#1995)
Fixes an issue where it's not possible to depend on pkl-cli because
these dependencies are not published.

Also, add these artifacts to pkl-bom.
2026-11-18 09:21:37 -08:00
Amann Malik a7dc007cb4 Fix subscript access on raw collection references (#1993) 2026-11-17 11:07:23 -08:00
Islon Scherer c3d555d49c Fix pkl project package with multiple projects (#1981) 2026-11-17 11:07:17 -08:00
Jen Basch 83e47694ef Fix import analysis failures for glob imports into local package deps (#1992) 2026-11-17 11:07:05 -08:00
0z5a 246e01b55c Fix YAML block indentation after leading newlines (#1990) 2026-11-17 11:06:58 -08:00
Mike Drob ba3bbf7e65 Run macOS CI on goldengate with Xcode_swift_6.4 2026-11-17 11:06:46 -08:00
Jen Basch 53e03d2b7c Fix release notes links (#1970) 2026-11-05 13:26:19 -08:00
Dan Chao 20f7cb24d4 Add 0.33 nav link to index page 2026-11-05 12:43:43 -08:00
69 changed files with 378 additions and 106 deletions

No files matched your search

+4 -4
View File
@@ -45,6 +45,9 @@ fixed job {
when (os == "windows") { when (os == "windows") {
["JAVA_HOME"] = "/jdk" ["JAVA_HOME"] = "/jdk"
} }
when (os == "macOS") {
["DEVELOPER_DIR"] = "/Applications/Xcode_swift_6.4.app"
}
} }
when (os == "macOS") { when (os == "macOS") {
`if` = `if` =
@@ -65,10 +68,7 @@ fixed job {
new Listing { new Listing {
"self-hosted" "self-hosted"
"macos" "macos"
// Currently have a bug where macOS runners have `cc` from XCode 26 toolchain but have "goldengate"
// default SDK set to 27.
// TODO remove me once this issue is fixed.
"tahoe"
when (nightlyMacOS) { when (nightlyMacOS) {
"nightly" "nightly"
} }
+6 -3
View File
@@ -321,9 +321,10 @@ jobs:
runs-on: runs-on:
- self-hosted - self-hosted
- macos - macos
- tahoe - goldengate
env: env:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
steps: steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with: with:
@@ -660,9 +661,10 @@ jobs:
runs-on: runs-on:
- self-hosted - self-hosted
- macos - macos
- tahoe - goldengate
env: env:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
steps: steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with: with:
@@ -999,9 +1001,10 @@ jobs:
runs-on: runs-on:
- self-hosted - self-hosted
- macos - macos
- tahoe - goldengate
env: env:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
steps: steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with: with:
+6 -3
View File
@@ -319,9 +319,10 @@ jobs:
runs-on: runs-on:
- self-hosted - self-hosted
- macos - macos
- tahoe - goldengate
env: env:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
steps: steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with: with:
@@ -658,9 +659,10 @@ jobs:
runs-on: runs-on:
- self-hosted - self-hosted
- macos - macos
- tahoe - goldengate
env: env:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
steps: steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with: with:
@@ -997,9 +999,10 @@ jobs:
runs-on: runs-on:
- self-hosted - self-hosted
- macos - macos
- tahoe - goldengate
env: env:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
steps: steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with: with:
+6 -3
View File
@@ -211,9 +211,10 @@ jobs:
runs-on: runs-on:
- self-hosted - self-hosted
- macos - macos
- tahoe - goldengate
env: env:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
steps: steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with: with:
@@ -559,9 +560,10 @@ jobs:
runs-on: runs-on:
- self-hosted - self-hosted
- macos - macos
- tahoe - goldengate
env: env:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
steps: steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with: with:
@@ -907,9 +909,10 @@ jobs:
runs-on: runs-on:
- self-hosted - self-hosted
- macos - macos
- tahoe - goldengate
env: env:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
steps: steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with: with:
+6 -3
View File
@@ -319,9 +319,10 @@ jobs:
runs-on: runs-on:
- self-hosted - self-hosted
- macos - macos
- tahoe - goldengate
env: env:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
steps: steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with: with:
@@ -658,9 +659,10 @@ jobs:
runs-on: runs-on:
- self-hosted - self-hosted
- macos - macos
- tahoe - goldengate
env: env:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
steps: steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with: with:
@@ -997,9 +999,10 @@ jobs:
runs-on: runs-on:
- self-hosted - self-hosted
- macos - macos
- tahoe - goldengate
env: env:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
steps: steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with: with:
+6 -3
View File
@@ -322,9 +322,10 @@ jobs:
runs-on: runs-on:
- self-hosted - self-hosted
- macos - macos
- tahoe - goldengate
env: env:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
steps: steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with: with:
@@ -666,9 +667,10 @@ jobs:
runs-on: runs-on:
- self-hosted - self-hosted
- macos - macos
- tahoe - goldengate
env: env:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
steps: steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with: with:
@@ -1010,9 +1012,10 @@ jobs:
runs-on: runs-on:
- self-hosted - self-hosted
- macos - macos
- tahoe - goldengate
env: env:
LANG: en_US.UTF-8 LANG: en_US.UTF-8
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
steps: steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with: with:
@@ -279,8 +279,12 @@ abstract class NativeImageBuild : DefaultTask() {
add("--native-compiler-path=${nativeCompilerPath.get().asFile}") add("--native-compiler-path=${nativeCompilerPath.get().asFile}")
} }
// Pass through all `HOMEBREW_` prefixed environment variables to allow build with shimmed // Pass through all `HOMEBREW_` prefixed environment variables to allow build with shimmed
// tools. // tools, and `DEVELOPER_DIR` so that `cc` on macOS uses the selected Xcode toolchain.
addAll(environment.keys.filter { it.startsWith("HOMEBREW_") }.map { "-E$it" }) addAll(
environment.keys
.filter { it.startsWith("HOMEBREW_") || it == "DEVELOPER_DIR" }
.map { "-E$it" }
)
addAll(extraNativeImageArgs.get()) addAll(extraNativeImageArgs.get())
addAll(extraArgsFromProperties) addAll(extraArgsFromProperties)
} }
+1 -1
View File
@@ -1,6 +1,6 @@
name: main name: main
title: Main Project title: Main Project
version: 0.33.0 version: 0.33.1
prerelease: false prerelease: false
nav: nav:
- nav.adoc - nav.adoc
@@ -3,7 +3,7 @@
// the following attributes must be updated immediately before a release // the following attributes must be updated immediately before a release
// pkl version corresponding to current git commit without -dev suffix or git hash // pkl version corresponding to current git commit without -dev suffix or git hash
:pkl-version-no-suffix: 0.33.0 :pkl-version-no-suffix: 0.33.1
// tells whether pkl version corresponding to current git commit // tells whether pkl version corresponding to current git commit
// is a release version (:is-release-version: '') or dev version (:!is-release-version:) // is a release version (:is-release-version: '') or dev version (:!is-release-version:)
:is-release-version: '' :is-release-version: ''
+5 -5
View File
@@ -1,6 +1,6 @@
= Pkl 0.33 Release Notes = Pkl 0.33 Release Notes
:version: 0.33 :version: 0.33
:version-minor: 0.33.0 :version-minor: 0.33.1
:release-date: November 5th, 2026 :release-date: November 5th, 2026
:version-next: 0.34 :version-next: 0.34
:version-next-date: February 2027 :version-next-date: February 2027
@@ -58,7 +58,7 @@ To learn more about the design of generic method calls, consult https://github.c
A new standard library module is introduced called pkldoc:#[pkl:net], for working with network types (https://github.com/apple/pkl/pull/1834[#1834]). A new standard library module is introduced called pkldoc:#[pkl:net], for working with network types (https://github.com/apple/pkl/pull/1834[#1834]).
Its centerpiece is pkldoc:Url[pkl:net], a URL as defined by https://www.rfc-editor.org/rfc/rfc3986[RFC 3986]. Its centerpiece is pkldoc:Url[pkl:net], a URL as defined by https://www.rfc-editor.org/rfc/rfc3986[RFC 3986].
A string is parsed with pkldoc:Url()[pkl:net], which accepts an absolute URL as well as a relative reference, and which throws if the string cannot be parsed: A string is parsed with pkldoc:#Url()[pkl:net], which accepts an absolute URL as well as a relative reference, and which throws if the string cannot be parsed:
[source,pkl] [source,pkl]
---- ----
@@ -119,7 +119,7 @@ To instead compare them as the *syntax-based normalization* of RFC 3986, where s
same = net.Url("HTTPS://Example.com/%7Euser").equals(net.Url("https://example.com/~user")) // true same = net.Url("HTTPS://Example.com/%7Euser").equals(net.Url("https://example.com/~user")) // true
---- ----
The module also provides standalone helpers: pkldoc:encodeUrlComponent()[pkl:net] and pkldoc:decodeUrlComponent()[pkl:net] for percent-encoding, and pkldoc:buildQuery()[pkl:net] and pkldoc:parseQuery()[pkl:net] for `application/x-www-form-urlencoded` queries. The module also provides standalone helpers: pkldoc:#encodeUrlComponent()[pkl:net] and pkldoc:#decodeUrlComponent()[pkl:net] for percent-encoding, and pkldoc:#buildQuery()[pkl:net] and pkldoc:#parseQuery()[pkl:net] for `application/x-www-form-urlencoded` queries.
Alongside this module, `pkl:base` gains pkldoc:String#isValidUrl[], which tells whether a string is a valid absolute URL. Alongside this module, `pkl:base` gains pkldoc:String#isValidUrl[], which tells whether a string is a valid absolute URL.
It is stricter than `net.Url()`, which also parses a relative reference, and which percent-encodes whatever cannot appear literally in a URL component. It is stricter than `net.Url()`, which also parses a relative reference, and which percent-encodes whatever cannot appear literally in a URL component.
@@ -498,7 +498,7 @@ bad1: Uri = "./some/path" // throws: not absolute
bad2: Uri = "https://example.com/some path" // throws: space must be percent-encoded bad2: Uri = "https://example.com/some path" // throws: space must be percent-encoded
---- ----
This affects every standard library member typed as `Uri`, among them pkldoc:Resource#uri[], pkldoc:importGraph()[pkl:analyze], and the URI-valued properties of pkldoc:#[pkl:Project], pkldoc:#[pkl:EvaluatorSettings] and pkldoc:#[pkl:DocPackageInfo]. This affects every standard library member typed as `Uri`, among them pkldoc:Resource#uri[], pkldoc:#importGraph()[pkl:analyze], and the URI-valued properties of pkldoc:#[pkl:Project], pkldoc:#[pkl:EvaluatorSettings] and pkldoc:#[pkl:DocPackageInfo].
As a consequence, an invalid URI is now reported as a type constraint violation at the point where it is set, rather than as an error raised later by whatever consumes it. As a consequence, an invalid URI is now reported as a type constraint violation at the point where it is set, rather than as an error raised later by whatever consumes it.
@@ -566,7 +566,7 @@ To restore the old meaning, wrap the left-hand side with parentheses:
=== `test.catch()` and `test.catchOrNull()` force their result === `test.catch()` and `test.catchOrNull()` force their result
The pkldoc:catch()[pkl:test] and pkldoc:catchOrNull()[pkl:test] methods now fully evaluate the value returned by the function they are given (https://github.com/apple/pkl/pull/1910[#1910]). The pkldoc:#catch()[pkl:test] and pkldoc:#catchOrNull()[pkl:test] methods now fully evaluate the value returned by the function they are given (https://github.com/apple/pkl/pull/1910[#1910]).
Currently, an error nested inside the returned value was not caught. Currently, an error nested inside the returned value was not caught.
It surfaced later, when the value was used. It surfaced later, when the value was used.
@@ -1,6 +1,30 @@
= Changelog = Changelog
include::ROOT:partial$component-attributes.adoc[] include::ROOT:partial$component-attributes.adoc[]
[[release-0.33.1]]
== 0.33.1 (2026-11-18)
=== Fixes
* Fix rendering of YAML with leading indentation following newlines (https://github.com/apple/pkl/pull/1990[#1990]).
* Fix import analysis failures for glob imports into local package deps (https://github.com/apple/pkl/pull/1992[#1992]).
* Fix pkl project package with multiple projects (https://github.com/apple/pkl/pull/1981[#1981]).
* Fix subscript access on unparameterized `List`/`Listing`/`Map`/`Mapping` references (https://github.com/apple/pkl/pull/1993[#1993]).
=== Additions
* Add publications for pkl-server, and pkl-profiler (https://github.com/apple/pkl/pull/1995[#1995]).
=== Contributors ❤️
Thank you to all the contributors for this release!
* https://github.com/0z5a[@0z5a]
* https://github.com/amannm[@amannm]
* https://github.com/bioball[@bioball]
* https://github.com/HT154[@HT154]
* https://github.com/stackoverflow[@stackoverflow]
[[release-0.33.0]] [[release-0.33.0]]
== 0.33.0 (2026-11-05) == 0.33.0 (2026-11-05)
@@ -2,6 +2,7 @@
The Pkl team aims to release a new version of Pkl in February, June, and October of each year. The Pkl team aims to release a new version of Pkl in February, June, and October of each year.
* xref:0.33.adoc[0.33 Release Notes]
* xref:0.32.adoc[0.32 Release Notes] * xref:0.32.adoc[0.32 Release Notes]
* xref:0.31.adoc[0.31 Release Notes] * xref:0.31.adoc[0.31 Release Notes]
* xref:0.30.adoc[0.30 Release Notes] * xref:0.30.adoc[0.30 Release Notes]
+1 -1
View File
@@ -1,7 +1,7 @@
# suppress inspection "UnusedProperty" for whole file # suppress inspection "UnusedProperty" for whole file
group=org.pkl-lang group=org.pkl-lang
version=0.33.0 version=0.33.1
# google-java-format requires jdk.compiler exports # google-java-format requires jdk.compiler exports
org.gradle.jvmargs= \ org.gradle.jvmargs= \
+3 -3
View File
@@ -2,15 +2,15 @@
"catalogs": {}, "catalogs": {},
"aliases": { "aliases": {
"pkl": { "pkl": {
"script-ref": "org.pkl-lang:pkl-cli-java:0.33.0", "script-ref": "org.pkl-lang:pkl-cli-java:0.33.1",
"java-agents": [] "java-agents": []
}, },
"pkl-codegen-java": { "pkl-codegen-java": {
"script-ref": "org.pkl-lang:pkl-codegen-java:0.33.0", "script-ref": "org.pkl-lang:pkl-codegen-java:0.33.1",
"java-agents": [] "java-agents": []
}, },
"pkl-codegen-kotlin": { "pkl-codegen-kotlin": {
"script-ref": "org.pkl-lang:pkl-codegen-kotlin:0.33.0", "script-ref": "org.pkl-lang:pkl-codegen-kotlin:0.33.1",
"java-agents": [] "java-agents": []
} }
}, },
+2
View File
@@ -38,6 +38,8 @@ dependencies {
api(projects.pklGradle) api(projects.pklGradle)
api(projects.pklParser) api(projects.pklParser)
api(projects.pklTools) api(projects.pklTools)
api(projects.pklServer)
api(projects.pklProfiler)
} }
} }
+8 -6
View File
@@ -87,8 +87,9 @@ tasks.jar {
tasks.javadoc { enabled = false } tasks.javadoc { enabled = false }
// has its own dedicated task; see `testProfilerOutput` and `testNativeProfilerOutput` below // subprocess tests have their own dedicated tasks; see `testProfilerOutput` and
tasks.test { exclude("**/SubprocessProfilerOutputTest.class") } // `testNativeProfilerOutput` below
tasks.test { exclude("**/Subprocess*Test.class") }
tasks.shadowJar { tasks.shadowJar {
archiveFileName.set("jpkl") archiveFileName.set("jpkl")
@@ -112,8 +113,9 @@ val testJavaExecutable =
// executable; // executable;
// to verify that, we don't want to include them here) // to verify that, we don't want to include them here)
(configurations.testRuntimeClasspath.get() - configurations.runtimeClasspath.get()) (configurations.testRuntimeClasspath.get() - configurations.runtimeClasspath.get())
// has its own dedicated task; see `testProfilerOutput` and `testNativeProfilerOutput` below // subprocess tests have their own dedicated tasks; see `testProfilerOutput` and
exclude("**/SubprocessProfilerOutputTest.class") // `testNativeProfilerOutput` below
exclude("**/Subprocess*Test.class")
} }
// Setup `testJavaExecutable` tasks for multi-JDK testing. // Setup `testJavaExecutable` tasks for multi-JDK testing.
@@ -223,7 +225,7 @@ val testProfilerOutput =
dependsOn(tasks.javaExecutable) dependsOn(tasks.javaExecutable)
testClassesDirs = sourceSets.test.get().output.classesDirs testClassesDirs = sourceSets.test.get().output.classesDirs
classpath = sourceSets.test.get().runtimeClasspath classpath = sourceSets.test.get().runtimeClasspath
include("**/SubprocessProfilerOutputTest.class") include("**/Subprocess*Test.class")
systemProperty( systemProperty(
"org.pkl.cli.testJar", "org.pkl.cli.testJar",
tasks.javaExecutable.get().outputs.files.singleFile.absolutePath, tasks.javaExecutable.get().outputs.files.singleFile.absolutePath,
@@ -236,7 +238,7 @@ val testNativeProfilerOutput =
dependsOn(tasks.assembleNative) dependsOn(tasks.assembleNative)
testClassesDirs = sourceSets.test.get().output.classesDirs testClassesDirs = sourceSets.test.get().output.classesDirs
classpath = sourceSets.test.get().runtimeClasspath classpath = sourceSets.test.get().runtimeClasspath
include("**/SubprocessProfilerOutputTest.class") include("**/Subprocess*Test.class")
systemProperty( systemProperty(
"org.pkl.cli.testExecutable", "org.pkl.cli.testExecutable",
tasks.assembleNative.get().outputs.files.singleFile.absolutePath, tasks.assembleNative.get().outputs.files.singleFile.absolutePath,
@@ -21,7 +21,6 @@ import com.github.ajalt.clikt.core.*
import com.github.ajalt.clikt.parameters.arguments.* import com.github.ajalt.clikt.parameters.arguments.*
import com.github.ajalt.clikt.parameters.options.* import com.github.ajalt.clikt.parameters.options.*
import com.github.ajalt.clikt.parameters.types.int import com.github.ajalt.clikt.parameters.types.int
import com.oracle.truffle.api.TruffleOptions
import java.io.OutputStream import java.io.OutputStream
import java.net.URI import java.net.URI
import java.nio.file.Path import java.nio.file.Path
@@ -42,7 +41,6 @@ import org.pkl.core.ModuleSource.uri
import org.pkl.core.PklBugException import org.pkl.core.PklBugException
import org.pkl.core.PklException import org.pkl.core.PklException
import org.pkl.core.ProfilerOptions import org.pkl.core.ProfilerOptions
import org.pkl.core.runtime.VmUtils
import org.pkl.core.util.IoUtils import org.pkl.core.util.IoUtils
class CliCommandRunner class CliCommandRunner
@@ -63,9 +61,6 @@ constructor(
} finally { } finally {
Closeables.closeQuietly(builder.moduleKeyFactories) Closeables.closeQuietly(builder.moduleKeyFactories)
Closeables.closeQuietly(builder.resourceReaders) Closeables.closeQuietly(builder.resourceReaders)
if (TruffleOptions.AOT) {
VmUtils.closeEngine()
}
} }
} }
@@ -15,7 +15,6 @@
*/ */
package org.pkl.cli package org.pkl.cli
import com.oracle.truffle.api.TruffleOptions
import java.io.File import java.io.File
import java.io.InputStream import java.io.InputStream
import java.io.OutputStream import java.io.OutputStream
@@ -110,9 +109,6 @@ constructor(
} finally { } finally {
Closeables.closeQuietly(builder.moduleKeyFactories) Closeables.closeQuietly(builder.moduleKeyFactories)
Closeables.closeQuietly(builder.resourceReaders) Closeables.closeQuietly(builder.resourceReaders)
if (TruffleOptions.AOT) {
VmUtils.closeEngine()
}
} }
} }
@@ -15,7 +15,6 @@
*/ */
package org.pkl.cli package org.pkl.cli
import com.oracle.truffle.api.TruffleOptions
import java.io.StringWriter import java.io.StringWriter
import java.io.Writer import java.io.Writer
import org.pkl.commons.cli.* import org.pkl.commons.cli.*
@@ -25,7 +24,6 @@ import org.pkl.core.ModuleSource.uri
import org.pkl.core.PklException import org.pkl.core.PklException
import org.pkl.core.ProfilerOptions import org.pkl.core.ProfilerOptions
import org.pkl.core.TestResults import org.pkl.core.TestResults
import org.pkl.core.runtime.VmUtils
import org.pkl.core.stdlib.test.report.JUnitReporter import org.pkl.core.stdlib.test.report.JUnitReporter
import org.pkl.core.stdlib.test.report.MinimalReporter import org.pkl.core.stdlib.test.report.MinimalReporter
import org.pkl.core.stdlib.test.report.SpecReporter import org.pkl.core.stdlib.test.report.SpecReporter
@@ -47,9 +45,6 @@ constructor(
} finally { } finally {
Closeables.closeQuietly(builder.moduleKeyFactories) Closeables.closeQuietly(builder.moduleKeyFactories)
Closeables.closeQuietly(builder.resourceReaders) Closeables.closeQuietly(builder.resourceReaders)
if (TruffleOptions.AOT) {
VmUtils.closeEngine()
}
} }
} }
@@ -36,29 +36,13 @@ import org.junit.jupiter.api.io.TempDir
* `-Dorg.pkl.cli.testJar=<path>` (or `-Dorg.pkl.cli.testExecutable=<path>`). * `-Dorg.pkl.cli.testJar=<path>` (or `-Dorg.pkl.cli.testExecutable=<path>`).
*/ */
class SubprocessProfilerOutputTest { class SubprocessProfilerOutputTest {
/**
* The command that launches Pkl: the native executable if `org.pkl.cli.testExecutable` is set,
* otherwise the executable jar given by `org.pkl.cli.testJar`.
*/
private fun launcher(): Array<String> {
System.getProperty("org.pkl.cli.testExecutable")?.let {
return arrayOf(it)
}
val jar =
checkNotNull(System.getProperty("org.pkl.cli.testJar")) {
"neither system property `org.pkl.cli.testExecutable` nor `org.pkl.cli.testJar` is set"
}
val javaBin = ProcessHandle.current().info().command().orElseThrow()
return arrayOf(javaBin, "-jar", jar)
}
private fun runTest(tempDir: Path, pklCode: String, command: Array<String>) { private fun runTest(tempDir: Path, pklCode: String, command: Array<String>) {
val sourceFile = tempDir.resolve("profiled.pkl").also { it.writeText(pklCode) } val sourceFile = tempDir.resolve("profiled.pkl").also { it.writeText(pklCode) }
val outputFile = tempDir.resolve("profile.pb.gz") val outputFile = tempDir.resolve("profile.pb.gz")
val process = val process =
ProcessBuilder( ProcessBuilder(
*launcher(), *subprocessLauncher(),
*command, *command,
"--profile-cpu-output", "--profile-cpu-output",
outputFile.absolutePathString(), outputFile.absolutePathString(),
@@ -0,0 +1,84 @@
/*
* Copyright © 2026 Apple Inc. and the Pkl project authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.pkl.cli
import java.nio.file.Path
import kotlin.io.path.exists
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.io.TempDir
/**
* Runs `pkl project package` using the packaged executable jar (or native executable) as a
* subprocess.
*/
class SubprocessProjectPackagerTest {
private fun Path.writeProject(name: String) {
writeFile(
"$name/PklProject",
"""
amends "pkl:Project"
package {
name = "$name"
baseUri = "package://example.com/$name"
version = "1.0.0"
packageZipUrl = "https://example.com/$name@\(version).zip"
apiTests { "test.pkl" }
}
"""
.trimIndent(),
)
writeFile(
"$name/test.pkl",
"""
amends "pkl:test"
facts {
["ok"] { true }
}
"""
.trimIndent(),
)
}
@Test
fun `multiple projects with apiTests`(@TempDir tempDir: Path) {
tempDir.writeProject("project1")
tempDir.writeProject("project2")
val process =
ProcessBuilder(
*subprocessLauncher(),
"project",
"package",
"--skip-publish-check",
"--output-path",
".out",
"project1",
"project2",
)
.directory(tempDir.toFile())
.redirectErrorStream(true)
.start()
val output = process.inputStream.bufferedReader().readText()
val exitCode = process.waitFor()
assertThat(exitCode).withFailMessage { "process failed with output:\n$output" }.isZero()
assertThat(tempDir.resolve(".out/project1@1.0.0.zip").exists()).isTrue
assertThat(tempDir.resolve(".out/project2@1.0.0.zip").exists()).isTrue
}
}
@@ -1,5 +1,5 @@
/* /*
* Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved. * Copyright © 2024-2026 Apple Inc. and the Pkl project authors. All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -28,3 +28,19 @@ fun Path.writeFile(fileName: String, contents: String): Path {
} }
fun Path.writeEmptyFile(fileName: String): Path = writeFile(fileName, "") fun Path.writeEmptyFile(fileName: String): Path = writeFile(fileName, "")
/**
* The command that launches Pkl in subprocess tests: the native executable if
* `org.pkl.cli.testExecutable` is set, otherwise the executable jar given by `org.pkl.cli.testJar`.
*/
fun subprocessLauncher(): Array<String> {
System.getProperty("org.pkl.cli.testExecutable")?.let {
return arrayOf(it)
}
val jar =
checkNotNull(System.getProperty("org.pkl.cli.testJar")) {
"neither system property `org.pkl.cli.testExecutable` nor `org.pkl.cli.testJar` is set"
}
val javaBin = ProcessHandle.current().info().command().orElseThrow()
return arrayOf(javaBin, "-jar", jar)
}
@@ -102,7 +102,8 @@ public class VmImportAnalyzer {
try { try {
if (entry.isGlob()) { if (entry.isGlob()) {
var theModuleKey = var theModuleKey =
moduleResolver.resolve(moduleKey.resolveUri(IoUtils.toUri(entry.stringValue()))); moduleResolver.resolve(
IoUtils.resolve(securityManager, moduleKey, IoUtils.toUri(entry.stringValue())));
var elements = var elements =
GlobResolver.resolveGlob( GlobResolver.resolveGlob(
securityManager, securityManager,
@@ -35,7 +35,7 @@ import org.pkl.parser.syntax.Module;
@TruffleLanguage.Registration( @TruffleLanguage.Registration(
id = "pkl", id = "pkl",
name = "Pkl", name = "Pkl",
version = "0.33.0", version = "0.33.1",
characterMimeTypes = VmLanguage.MIME_TYPE, characterMimeTypes = VmLanguage.MIME_TYPE,
contextPolicy = ContextPolicy.SHARED) contextPolicy = ContextPolicy.SHARED)
@ProvidedTags(PklTags.Expression.class) @ProvidedTags(PklTags.Expression.class)
@@ -288,11 +288,20 @@ public final class VmReference extends VmValue {
if (!(key instanceof Long)) { if (!(key instanceof Long)) {
throw new VmReferenceAccessError(type, VmReferenceAccessErrorType.CANNOT_FIND_MEMBER); throw new VmReferenceAccessError(type, VmReferenceAccessErrorType.CANNOT_FIND_MEMBER);
} }
normalizeTypes(ct.getTypeArguments()[0], clazz, clazz.getModuleClass(), result); var typeArgs = ct.getTypeArguments();
if (typeArgs.length == 0) {
result.add(UnknownType.INSTANCE);
return;
}
normalizeTypes(typeArgs[0], clazz, clazz.getModuleClass(), result);
return; return;
} }
if (clazz.isMappingClass() || clazz.isMapClass()) { if (clazz.isMappingClass() || clazz.isMapClass()) {
var typeArgs = ct.getTypeArguments(); var typeArgs = ct.getTypeArguments();
if (typeArgs.length == 0) {
result.add(UnknownType.INSTANCE);
return;
}
var keyTypes = normalizeTypes(typeArgs[0], clazz, clazz.getModuleClass()); var keyTypes = normalizeTypes(typeArgs[0], clazz, clazz.getModuleClass());
for (var kt : iterateTypes(keyTypes)) { for (var kt : iterateTypes(keyTypes)) {
if (kt == UnknownType.INSTANCE if (kt == UnknownType.INSTANCE
@@ -122,10 +122,6 @@ public final class VmUtils {
return Engine.newBuilder("pkl").option("engine.WarnInterpreterOnly", "false").build(); return Engine.newBuilder("pkl").option("engine.WarnInterpreterOnly", "false").build();
} }
public static void closeEngine() {
PKL_ENGINE.close(true);
}
static VmTyped createEmptyModule() { static VmTyped createEmptyModule() {
return new VmTyped(createEmptyMaterializedFrame(), null, EconomicMaps.create()); return new VmTyped(createEmptyMaterializedFrame(), null, EconomicMaps.create());
} }
@@ -292,12 +292,20 @@ public abstract class YamlEmitter {
private void emitMultilineString(String str, int newlineIndex, StringBuilder currIndent) { private void emitMultilineString(String str, int newlineIndex, StringBuilder currIndent) {
currIndent.append(indent); currIndent.append(indent);
var length = str.length();
// YAML detects the indentation of a block scalar from its first non-empty line.
// If that line starts with a space, emit an explicit indentation indicator.
var firstNonNewlineIndex = 0;
while (firstNonNewlineIndex < length && str.charAt(firstNonNewlineIndex) == '\n') {
firstNonNewlineIndex++;
}
builder.append('|'); builder.append('|');
if (str.charAt(0) == ' ') { if (firstNonNewlineIndex < length && str.charAt(firstNonNewlineIndex) == ' ') {
builder.append(indent.length()); builder.append(indent.length());
} }
var length = str.length();
if (str.charAt(length - 1) == '\n') { if (str.charAt(length - 1) == '\n') {
if (length == 1 || str.charAt(length - 2) == '\n') { if (length == 1 || str.charAt(length - 2) == '\n') {
builder.append('+'); builder.append('+');
@@ -0,0 +1,8 @@
amends "pkl:Project"
package {
name = "a"
baseUri = "package://example.com/a"
version = "1.0.0"
packageZipUrl = "https://example.com/a.zip"
}
@@ -150,6 +150,11 @@ mappingAnyKey = Ref<TypeHolder>(null).mappingAnyKey["foo"]
// because VmListing/VmMapping don't track their type args // because VmListing/VmMapping don't track their type args
mappingTypeArgKey = Ref<TypeHolder>(null).mappingTypeArgKey[new Listing<String> { "foo" }] mappingTypeArgKey = Ref<TypeHolder>(null).mappingTypeArgKey[new Listing<String> { "foo" }]
rawListingSubscript = Ref<Listing>(null)[0].foo
rawListSubscript = Ref<List>(null)[1].foo
rawMappingSubscript = Ref<Mapping>(null)["bar"].foo
rawMapSubscript = Ref<Map>(null)[2].foo
output { output {
renderer { renderer {
converters { converters {
@@ -59,6 +59,9 @@ i3 = "one\u{7}two\nthree"
j1 = " one\ntwo" j1 = " one\ntwo"
j2 = " one\ntwo" j2 = " one\ntwo"
j3 = "one\n two" j3 = "one\n two"
j4 = "\n one"
j5 = "\n\n one\ntwo"
j6 = "\n \none"
// trailing spaces in multiline strings // trailing spaces in multiline strings
k1 = "one\ntwo " k1 = "one\ntwo "
@@ -0,0 +1,3 @@
amends "pkl:Project"
dependencies { ["a"] = import(".../input-helper/projects/analyzeLocalPackageGlob/PklProject") }
@@ -0,0 +1,10 @@
{
"schemaVersion": 1,
"resolvedDependencies": {
"package://example.com/a@1": {
"type": "local",
"uri": "projectpackage://example.com/a@1.0.0",
"path": "../../../input-helper/projects/analyzeLocalPackageGlob"
}
}
}
@@ -0,0 +1,26 @@
amends ".../snippetTest.pkl"
import "pkl:analyze"
import "pkl:reflect"
import "glob.pkl"
import "single.pkl"
examples {
["single"] {
analyze.importGraph(Set(reflect.Module(single).uri))
}
["glob"] {
analyze.importGraph(Set(reflect.Module(glob).uri))
}
}
output {
renderer {
// mimick result of `pkl analyze imports` CLI command
converters {
[Map] = (it) -> it.toMapping()
[Set] = (it) -> it.toListing()
}
}
}
@@ -0,0 +1 @@
res = import*("@a/mods/*.pkl").toMap().mapValues((_, m) -> m.x)
@@ -0,0 +1 @@
res = import("@a/mods/one.pkl").x
@@ -66,3 +66,7 @@ bareFunctionType = "Expected value of type `pkl.ref#Reference<reference#D, Strin
constraintInConstructor = "${null}" constraintInConstructor = "${null}"
mappingAnyKey = "${null.mappingAnyKey[foo]}" mappingAnyKey = "${null.mappingAnyKey[foo]}"
mappingTypeArgKey = "${null.mappingTypeArgKey[new Listing { \"foo\" }]}" mappingTypeArgKey = "${null.mappingTypeArgKey[new Listing { \"foo\" }]}"
rawListingSubscript = "${null[0].foo}"
rawListSubscript = "${null[1].foo}"
rawMappingSubscript = "${null[bar].foo}"
rawMapSubscript = "${null[2].foo}"
@@ -74,6 +74,18 @@ j2: |2-
j3: |- j3: |-
one one
two two
j4: |2-
one
j5: |2-
one
two
j6: |2-
one
k1: |- k1: |-
one one
two two
@@ -83,7 +95,7 @@ k2: |-
k3: |- k3: |-
one one
two two
l1: |- l1: |2-
l2: |2 l2: |2
@@ -91,7 +103,7 @@ l2: |2
l3: |2- l3: |2-
l4: | l4: |2
m1: 'foo:' m1: 'foo:'
@@ -0,0 +1,39 @@
examples {
["single"] {
new {
imports {
["file:///$snippetsDir/input/projects/analyzeLocalPackageGlob/single.pkl"] {
new {
uri = "projectpackage://example.com/a@1.0.0#/mods/one.pkl"
}
}
["projectpackage://example.com/a@1.0.0#/mods/one.pkl"] {}
}
resolvedImports {
["file:///$snippetsDir/input/projects/analyzeLocalPackageGlob/single.pkl"] = "file:///$snippetsDir/input/projects/analyzeLocalPackageGlob/single.pkl"
["projectpackage://example.com/a@1.0.0#/mods/one.pkl"] = "file:///$snippetsDir/input-helper/projects/analyzeLocalPackageGlob/mods/one.pkl"
}
}
}
["glob"] {
new {
imports {
["file:///$snippetsDir/input/projects/analyzeLocalPackageGlob/glob.pkl"] {
new {
uri = "projectpackage://example.com/a@1.0.0#/mods/one.pkl"
}
new {
uri = "projectpackage://example.com/a@1.0.0#/mods/two.pkl"
}
}
["projectpackage://example.com/a@1.0.0#/mods/one.pkl"] {}
["projectpackage://example.com/a@1.0.0#/mods/two.pkl"] {}
}
resolvedImports {
["file:///$snippetsDir/input/projects/analyzeLocalPackageGlob/glob.pkl"] = "file:///$snippetsDir/input/projects/analyzeLocalPackageGlob/glob.pkl"
["projectpackage://example.com/a@1.0.0#/mods/one.pkl"] = "file:///$snippetsDir/input-helper/projects/analyzeLocalPackageGlob/mods/one.pkl"
["projectpackage://example.com/a@1.0.0#/mods/two.pkl"] = "file:///$snippetsDir/input-helper/projects/analyzeLocalPackageGlob/mods/two.pkl"
}
}
}
}
@@ -0,0 +1 @@
res = Map("@a/mods/one.pkl", 1, "@a/mods/two.pkl", 2)
+12
View File
@@ -16,6 +16,7 @@
plugins { plugins {
id("pklAllProjects") id("pklAllProjects")
id("pklJavaLibrary") id("pklJavaLibrary")
id("pklPublishLibrary")
alias(libs.plugins.protobuf) alias(libs.plugins.protobuf)
idea idea
} }
@@ -37,3 +38,14 @@ sourceSets.main { resources { exclude("**/*.proto") } }
idea.module { generatedSourceDirs.add(file("build/generated/sources/proto/main/java")) } idea.module { generatedSourceDirs.add(file("build/generated/sources/proto/main/java")) }
protobuf.protoc { artifact = libs.protoc.get().toString() } protobuf.protoc { artifact = libs.protoc.get().toString() }
publishing {
publications {
named<MavenPublication>("library") {
pom {
url.set("https://github.com/apple/pkl/tree/main/pkl-profiler")
description.set("Profiling utilities for Pkl.")
}
}
}
}
+12
View File
@@ -17,6 +17,7 @@ plugins {
id("pklAllProjects") id("pklAllProjects")
id("pklKotlinLibrary") id("pklKotlinLibrary")
id("pklNativeLifecycle") id("pklNativeLifecycle")
id("pklPublishLibrary")
} }
val externalReaderFixtureConfiguration = configurations.create("externalReaderFixture") val externalReaderFixtureConfiguration = configurations.create("externalReaderFixture")
@@ -97,3 +98,14 @@ tasks.testNativeLinuxAmd64 { dependsOn(testLinuxExecutableAmd64) }
tasks.testNativeAlpineLinuxAmd64 { dependsOn(testAlpineExecutableAmd64) } tasks.testNativeAlpineLinuxAmd64 { dependsOn(testAlpineExecutableAmd64) }
tasks.testNativeWindowsAmd64 { dependsOn(testWindowsExecutableAmd64) } tasks.testNativeWindowsAmd64 { dependsOn(testWindowsExecutableAmd64) }
publishing {
publications {
named<MavenPublication>("library") {
pom {
url.set("https://github.com/apple/pkl/tree/main/pkl-server")
description.set("Implementation of the server side of Pkl's messaging passing protocol.")
}
}
}
}
+1 -1
View File
@@ -36,7 +36,7 @@
/// ///
/// Warning: Although this module is ready for initial use, /// Warning: Although this module is ready for initial use,
/// benchmark results may be inaccurate or inconsistent. /// benchmark results may be inaccurate or inconsistent.
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.Benchmark module pkl.Benchmark
import "pkl:platform" as _platform import "pkl:platform" as _platform
+1 -1
View File
@@ -29,7 +29,7 @@
/// // ... /// // ...
/// } /// }
/// ``` /// ```
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
open module pkl.Command open module pkl.Command
import "pkl:Command" import "pkl:Command"
+1 -1
View File
@@ -63,7 +63,7 @@
/// @Deprecated { message = "Use `com.example.Birds.Parrot` instead" } /// @Deprecated { message = "Use `com.example.Birds.Parrot` instead" }
/// amends "pkl:PackageInfo" /// amends "pkl:PackageInfo"
/// ``` /// ```
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.DocPackageInfo module pkl.DocPackageInfo
// used by doc comments // used by doc comments
+1 -1
View File
@@ -31,7 +31,7 @@
/// ///
/// title = "Title displayed in the header of each page" /// title = "Title displayed in the header of each page"
/// ``` /// ```
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.DocsiteInfo module pkl.DocsiteInfo
import "pkl:reflect" import "pkl:reflect"
+1 -1
View File
@@ -15,7 +15,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
/// Common settings for Pkl's own evaluator. /// Common settings for Pkl's own evaluator.
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
@Since { version = "0.26.0" } @Since { version = "0.26.0" }
module pkl.EvaluatorSettings module pkl.EvaluatorSettings
+1 -1
View File
@@ -64,7 +64,7 @@
/// value = project /// value = project
/// } /// }
/// ``` /// ```
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.Project module pkl.Project
import "pkl:EvaluatorSettings" as EvaluatorSettingsModule import "pkl:EvaluatorSettings" as EvaluatorSettingsModule
+1 -1
View File
@@ -19,7 +19,7 @@
/// These tools differentiate from [pkl:reflect][reflect] in that they parse Pkl modules, but do not /// These tools differentiate from [pkl:reflect][reflect] in that they parse Pkl modules, but do not
/// execute any code within these modules. /// execute any code within these modules.
@Since { version = "0.27.0" } @Since { version = "0.27.0" }
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.analyze module pkl.analyze
// used by doc comments // used by doc comments
+1 -1
View File
@@ -17,7 +17,7 @@
/// Fundamental properties, methods, and classes for writing Pkl programs. /// Fundamental properties, methods, and classes for writing Pkl programs.
/// ///
/// Members of this module are automatically available in every Pkl module. /// Members of this module are automatically available in every Pkl module.
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.base module pkl.base
import "pkl:json" import "pkl:json"
+1 -1
View File
@@ -15,7 +15,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
/// A JSON parser. /// A JSON parser.
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.json module pkl.json
/// Annotate properties of classes and modules with this class to override how a [JsonRenderer] /// Annotate properties of classes and modules with this class to override how a [JsonRenderer]
+1 -1
View File
@@ -15,7 +15,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
/// A [Jsonnet](https://jsonnet.org) renderer. /// A [Jsonnet](https://jsonnet.org) renderer.
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.jsonnet module pkl.jsonnet
/// Constructs an [ImportStr]. /// Constructs an [ImportStr].
+1 -1
View File
@@ -18,7 +18,7 @@
/// ///
/// Note that some mathematical functions, such as `sign()`, `abs()`, and `round()`, /// Note that some mathematical functions, such as `sign()`, `abs()`, and `round()`,
/// are directly defined in classes [Number], [Int], and [Float]. /// are directly defined in classes [Number], [Int], and [Float].
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.math module pkl.math
/// The minimum [Int] value: `-9223372036854775808`. /// The minimum [Int] value: `-9223372036854775808`.
+1 -1
View File
@@ -15,7 +15,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
/// Utilities for networking, like URL parsing. /// Utilities for networking, like URL parsing.
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
@Since { version = "0.33.0" } @Since { version = "0.33.0" }
module pkl.net module pkl.net
+1 -1
View File
@@ -28,7 +28,7 @@
/// The `pkl-binary` format uses MessagePack encoding. /// The `pkl-binary` format uses MessagePack encoding.
/// Its specification is available at /// Its specification is available at
/// <https://pkl-lang.org/main/current/bindings-specification/binary-encoding.html>. /// <https://pkl-lang.org/main/current/bindings-specification/binary-encoding.html>.
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.pklbinary module pkl.pklbinary
/// Render values as `pkl-binary`. /// Render values as `pkl-binary`.
+1 -1
View File
@@ -15,7 +15,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
/// Information about the platform that the current program runs on. /// Information about the platform that the current program runs on.
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.platform module pkl.platform
/// The platform that the current program runs on. /// The platform that the current program runs on.
+1 -1
View File
@@ -20,7 +20,7 @@
/// This module is deprecated, and scheduled for removal without replacement. /// This module is deprecated, and scheduled for removal without replacement.
/// For rendering into a protobuf wire format, consider rendering to /// For rendering into a protobuf wire format, consider rendering to
/// [ProtoJSON](https://protobuf.dev/programming-guides/json/) using [json.Renderer]. /// [ProtoJSON](https://protobuf.dev/programming-guides/json/) using [json.Renderer].
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
@Deprecated { since = "0.33.0"; message = "Scheduled for removal without replacement" } @Deprecated { since = "0.33.0"; message = "Scheduled for removal without replacement" }
module pkl.protobuf module pkl.protobuf
+1 -1
View File
@@ -25,7 +25,7 @@
/// * CI pipelines /// * CI pipelines
/// * Build graphs /// * Build graphs
/// * Workflow tools /// * Workflow tools
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
@Since { version = "0.32.0" } @Since { version = "0.32.0" }
module pkl.ref module pkl.ref
+1 -1
View File
@@ -26,7 +26,7 @@
/// - Documentation generators (such as *Pkldoc*) /// - Documentation generators (such as *Pkldoc*)
/// - Code generators (such as *pkl-codegen-java* and *pkl-codegen-kotlin*) /// - Code generators (such as *pkl-codegen-java* and *pkl-codegen-kotlin*)
/// - Domain-specific schema validators /// - Domain-specific schema validators
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.reflect module pkl.reflect
import "pkl:base" import "pkl:base"
+1 -1
View File
@@ -15,7 +15,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
/// Information about the Pkl release that the current program runs on. /// Information about the Pkl release that the current program runs on.
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.release module pkl.release
import "pkl:semver" import "pkl:semver"
+1 -1
View File
@@ -15,7 +15,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
/// Parsing, comparison, and manipulation of [semantic version](https://semver.org/spec/v2.0.0.html) numbers. /// Parsing, comparison, and manipulation of [semantic version](https://semver.org/spec/v2.0.0.html) numbers.
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.semver module pkl.semver
/// Tells whether [version] is a valid semantic version number. /// Tells whether [version] is a valid semantic version number.
+1 -1
View File
@@ -28,7 +28,7 @@
/// (dirs separated by `:` on Unix, `;` on Windows). /// (dirs separated by `:` on Unix, `;` on Windows).
/// 5. `/etc/xdg/pkl/settings.pkl` /// 5. `/etc/xdg/pkl/settings.pkl`
/// 6. `~/.pkl/settings.pkl` (legacy location used by Pkl 0.32 and lower) /// 6. `~/.pkl/settings.pkl` (legacy location used by Pkl 0.32 and lower)
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.settings module pkl.settings
import "pkl:EvaluatorSettings" import "pkl:EvaluatorSettings"
+1 -1
View File
@@ -15,7 +15,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
/// Utilities for generating shell scripts. /// Utilities for generating shell scripts.
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.shell module pkl.shell
/// Escapes [str] by enclosing it in single quotes. /// Escapes [str] by enclosing it in single quotes.
+1 -1
View File
@@ -15,7 +15,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
/// Utilities for managing Pkl source code. /// Utilities for managing Pkl source code.
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
@Since { version = "0.33.0" } @Since { version = "0.33.0" }
module pkl.syntax module pkl.syntax
+1 -1
View File
@@ -18,7 +18,7 @@
/// ///
/// To write tests, amend this module and define [facts] or [examples] (or both). /// To write tests, amend this module and define [facts] or [examples] (or both).
/// To run tests, use the `pkl test` command to evaluate the amended module. /// To run tests, use the `pkl test` command to evaluate the amended module.
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
open module pkl.test open module pkl.test
/// Named groups of boolean expressions that are expected to evaluate to [true]. /// Named groups of boolean expressions that are expected to evaluate to [true].
+1 -1
View File
@@ -15,7 +15,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
/// An XML renderer. /// An XML renderer.
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.xml module pkl.xml
/// Renders values as XML. /// Renders values as XML.
+1 -1
View File
@@ -15,7 +15,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
/// A YAML 1.2 compliant YAML parser. /// A YAML 1.2 compliant YAML parser.
@ModuleInfo { minPklVersion = "0.33.0" } @ModuleInfo { minPklVersion = "0.33.1" }
module pkl.yaml module pkl.yaml
/// Annotate properties of classes and modules with this class to override how a [YamlRenderer] /// Annotate properties of classes and modules with this class to override how a [YamlRenderer]