Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98b6f96b69 | ||
|
|
f2a301054d | ||
|
|
91e9ff92d0 | ||
|
|
a7dc007cb4 | ||
|
|
c3d555d49c | ||
|
|
83e47694ef | ||
|
|
246e01b55c | ||
|
|
ba3bbf7e65 | ||
|
|
53e03d2b7c | ||
|
|
20f7cb24d4 | ||
|
|
5ee1f296e3 |
No files matched your search
@@ -45,6 +45,9 @@ fixed job {
|
||||
when (os == "windows") {
|
||||
["JAVA_HOME"] = "/jdk"
|
||||
}
|
||||
when (os == "macOS") {
|
||||
["DEVELOPER_DIR"] = "/Applications/Xcode_swift_6.4.app"
|
||||
}
|
||||
}
|
||||
when (os == "macOS") {
|
||||
`if` =
|
||||
@@ -65,10 +68,7 @@ fixed job {
|
||||
new Listing {
|
||||
"self-hosted"
|
||||
"macos"
|
||||
// Currently have a bug where macOS runners have `cc` from XCode 26 toolchain but have
|
||||
// default SDK set to 27.
|
||||
// TODO remove me once this issue is fixed.
|
||||
"tahoe"
|
||||
"goldengate"
|
||||
when (nightlyMacOS) {
|
||||
"nightly"
|
||||
}
|
||||
|
||||
Generated
+6
-3
@@ -321,9 +321,10 @@ jobs:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- macos
|
||||
- tahoe
|
||||
- goldengate
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
||||
with:
|
||||
@@ -660,9 +661,10 @@ jobs:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- macos
|
||||
- tahoe
|
||||
- goldengate
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
||||
with:
|
||||
@@ -999,9 +1001,10 @@ jobs:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- macos
|
||||
- tahoe
|
||||
- goldengate
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
||||
with:
|
||||
|
||||
Generated
+6
-3
@@ -319,9 +319,10 @@ jobs:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- macos
|
||||
- tahoe
|
||||
- goldengate
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
||||
with:
|
||||
@@ -658,9 +659,10 @@ jobs:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- macos
|
||||
- tahoe
|
||||
- goldengate
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
||||
with:
|
||||
@@ -997,9 +999,10 @@ jobs:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- macos
|
||||
- tahoe
|
||||
- goldengate
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
||||
with:
|
||||
|
||||
Generated
+6
-3
@@ -211,9 +211,10 @@ jobs:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- macos
|
||||
- tahoe
|
||||
- goldengate
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
||||
with:
|
||||
@@ -559,9 +560,10 @@ jobs:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- macos
|
||||
- tahoe
|
||||
- goldengate
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
||||
with:
|
||||
@@ -907,9 +909,10 @@ jobs:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- macos
|
||||
- tahoe
|
||||
- goldengate
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
||||
with:
|
||||
|
||||
Generated
+6
-3
@@ -319,9 +319,10 @@ jobs:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- macos
|
||||
- tahoe
|
||||
- goldengate
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
||||
with:
|
||||
@@ -658,9 +659,10 @@ jobs:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- macos
|
||||
- tahoe
|
||||
- goldengate
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
||||
with:
|
||||
@@ -997,9 +999,10 @@ jobs:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- macos
|
||||
- tahoe
|
||||
- goldengate
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
||||
with:
|
||||
|
||||
Generated
+6
-3
@@ -322,9 +322,10 @@ jobs:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- macos
|
||||
- tahoe
|
||||
- goldengate
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
||||
with:
|
||||
@@ -666,9 +667,10 @@ jobs:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- macos
|
||||
- tahoe
|
||||
- goldengate
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
||||
with:
|
||||
@@ -1010,9 +1012,10 @@ jobs:
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- macos
|
||||
- tahoe
|
||||
- goldengate
|
||||
env:
|
||||
LANG: en_US.UTF-8
|
||||
DEVELOPER_DIR: /Applications/Xcode_swift_6.4.app
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
||||
with:
|
||||
|
||||
@@ -279,8 +279,12 @@ abstract class NativeImageBuild : DefaultTask() {
|
||||
add("--native-compiler-path=${nativeCompilerPath.get().asFile}")
|
||||
}
|
||||
// Pass through all `HOMEBREW_` prefixed environment variables to allow build with shimmed
|
||||
// tools.
|
||||
addAll(environment.keys.filter { it.startsWith("HOMEBREW_") }.map { "-E$it" })
|
||||
// tools, and `DEVELOPER_DIR` so that `cc` on macOS uses the selected Xcode toolchain.
|
||||
addAll(
|
||||
environment.keys
|
||||
.filter { it.startsWith("HOMEBREW_") || it == "DEVELOPER_DIR" }
|
||||
.map { "-E$it" }
|
||||
)
|
||||
addAll(extraNativeImageArgs.get())
|
||||
addAll(extraArgsFromProperties)
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
name: main
|
||||
title: Main Project
|
||||
version: 0.33.0-dev
|
||||
prerelease: true
|
||||
version: 0.33.1
|
||||
prerelease: false
|
||||
nav:
|
||||
- nav.adoc
|
||||
@@ -3,10 +3,10 @@
|
||||
// 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-no-suffix: 0.33.0
|
||||
:pkl-version-no-suffix: 0.33.1
|
||||
// tells whether pkl version corresponding to current git commit
|
||||
// is a release version (:is-release-version: '') or dev version (:!is-release-version:)
|
||||
:!is-release-version:
|
||||
:is-release-version: ''
|
||||
|
||||
// the remaining attributes do not need to be updated regularly
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
= Pkl 0.33 Release Notes
|
||||
:version: 0.33
|
||||
:version-minor: 0.33.0
|
||||
:version-minor: 0.33.1
|
||||
:release-date: November 5th, 2026
|
||||
:version-next: 0.34
|
||||
: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]).
|
||||
|
||||
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]
|
||||
----
|
||||
@@ -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
|
||||
----
|
||||
|
||||
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.
|
||||
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
|
||||
----
|
||||
|
||||
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.
|
||||
|
||||
@@ -566,7 +566,7 @@ To restore the old meaning, wrap the left-hand side with parentheses:
|
||||
|
||||
=== `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.
|
||||
It surfaced later, when the value was used.
|
||||
|
||||
@@ -1,6 +1,30 @@
|
||||
= Changelog
|
||||
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]]
|
||||
== 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.
|
||||
|
||||
* xref:0.33.adoc[0.33 Release Notes]
|
||||
* xref:0.32.adoc[0.32 Release Notes]
|
||||
* xref:0.31.adoc[0.31 Release Notes]
|
||||
* xref:0.30.adoc[0.30 Release Notes]
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
# suppress inspection "UnusedProperty" for whole file
|
||||
|
||||
group=org.pkl-lang
|
||||
version=0.33.0
|
||||
version=0.33.1
|
||||
|
||||
# google-java-format requires jdk.compiler exports
|
||||
org.gradle.jvmargs= \
|
||||
|
||||
+3
-3
@@ -2,15 +2,15 @@
|
||||
"catalogs": {},
|
||||
"aliases": {
|
||||
"pkl": {
|
||||
"script-ref": "org.pkl-lang:pkl-cli-java:0.32.2",
|
||||
"script-ref": "org.pkl-lang:pkl-cli-java:0.33.1",
|
||||
"java-agents": []
|
||||
},
|
||||
"pkl-codegen-java": {
|
||||
"script-ref": "org.pkl-lang:pkl-codegen-java:0.32.2",
|
||||
"script-ref": "org.pkl-lang:pkl-codegen-java:0.33.1",
|
||||
"java-agents": []
|
||||
},
|
||||
"pkl-codegen-kotlin": {
|
||||
"script-ref": "org.pkl-lang:pkl-codegen-kotlin:0.32.2",
|
||||
"script-ref": "org.pkl-lang:pkl-codegen-kotlin:0.33.1",
|
||||
"java-agents": []
|
||||
}
|
||||
},
|
||||
|
||||
@@ -38,6 +38,8 @@ dependencies {
|
||||
api(projects.pklGradle)
|
||||
api(projects.pklParser)
|
||||
api(projects.pklTools)
|
||||
api(projects.pklServer)
|
||||
api(projects.pklProfiler)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -87,8 +87,9 @@ tasks.jar {
|
||||
|
||||
tasks.javadoc { enabled = false }
|
||||
|
||||
// has its own dedicated task; see `testProfilerOutput` and `testNativeProfilerOutput` below
|
||||
tasks.test { exclude("**/SubprocessProfilerOutputTest.class") }
|
||||
// subprocess tests have their own dedicated tasks; see `testProfilerOutput` and
|
||||
// `testNativeProfilerOutput` below
|
||||
tasks.test { exclude("**/Subprocess*Test.class") }
|
||||
|
||||
tasks.shadowJar {
|
||||
archiveFileName.set("jpkl")
|
||||
@@ -112,8 +113,9 @@ val testJavaExecutable =
|
||||
// executable;
|
||||
// to verify that, we don't want to include them here)
|
||||
(configurations.testRuntimeClasspath.get() - configurations.runtimeClasspath.get())
|
||||
// has its own dedicated task; see `testProfilerOutput` and `testNativeProfilerOutput` below
|
||||
exclude("**/SubprocessProfilerOutputTest.class")
|
||||
// subprocess tests have their own dedicated tasks; see `testProfilerOutput` and
|
||||
// `testNativeProfilerOutput` below
|
||||
exclude("**/Subprocess*Test.class")
|
||||
}
|
||||
|
||||
// Setup `testJavaExecutable` tasks for multi-JDK testing.
|
||||
@@ -223,7 +225,7 @@ val testProfilerOutput =
|
||||
dependsOn(tasks.javaExecutable)
|
||||
testClassesDirs = sourceSets.test.get().output.classesDirs
|
||||
classpath = sourceSets.test.get().runtimeClasspath
|
||||
include("**/SubprocessProfilerOutputTest.class")
|
||||
include("**/Subprocess*Test.class")
|
||||
systemProperty(
|
||||
"org.pkl.cli.testJar",
|
||||
tasks.javaExecutable.get().outputs.files.singleFile.absolutePath,
|
||||
@@ -236,7 +238,7 @@ val testNativeProfilerOutput =
|
||||
dependsOn(tasks.assembleNative)
|
||||
testClassesDirs = sourceSets.test.get().output.classesDirs
|
||||
classpath = sourceSets.test.get().runtimeClasspath
|
||||
include("**/SubprocessProfilerOutputTest.class")
|
||||
include("**/Subprocess*Test.class")
|
||||
systemProperty(
|
||||
"org.pkl.cli.testExecutable",
|
||||
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.options.*
|
||||
import com.github.ajalt.clikt.parameters.types.int
|
||||
import com.oracle.truffle.api.TruffleOptions
|
||||
import java.io.OutputStream
|
||||
import java.net.URI
|
||||
import java.nio.file.Path
|
||||
@@ -42,7 +41,6 @@ import org.pkl.core.ModuleSource.uri
|
||||
import org.pkl.core.PklBugException
|
||||
import org.pkl.core.PklException
|
||||
import org.pkl.core.ProfilerOptions
|
||||
import org.pkl.core.runtime.VmUtils
|
||||
import org.pkl.core.util.IoUtils
|
||||
|
||||
class CliCommandRunner
|
||||
@@ -63,9 +61,6 @@ constructor(
|
||||
} finally {
|
||||
Closeables.closeQuietly(builder.moduleKeyFactories)
|
||||
Closeables.closeQuietly(builder.resourceReaders)
|
||||
if (TruffleOptions.AOT) {
|
||||
VmUtils.closeEngine()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package org.pkl.cli
|
||||
|
||||
import com.oracle.truffle.api.TruffleOptions
|
||||
import java.io.File
|
||||
import java.io.InputStream
|
||||
import java.io.OutputStream
|
||||
@@ -110,9 +109,6 @@ constructor(
|
||||
} finally {
|
||||
Closeables.closeQuietly(builder.moduleKeyFactories)
|
||||
Closeables.closeQuietly(builder.resourceReaders)
|
||||
if (TruffleOptions.AOT) {
|
||||
VmUtils.closeEngine()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package org.pkl.cli
|
||||
|
||||
import com.oracle.truffle.api.TruffleOptions
|
||||
import java.io.StringWriter
|
||||
import java.io.Writer
|
||||
import org.pkl.commons.cli.*
|
||||
@@ -25,7 +24,6 @@ import org.pkl.core.ModuleSource.uri
|
||||
import org.pkl.core.PklException
|
||||
import org.pkl.core.ProfilerOptions
|
||||
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.MinimalReporter
|
||||
import org.pkl.core.stdlib.test.report.SpecReporter
|
||||
@@ -47,9 +45,6 @@ constructor(
|
||||
} finally {
|
||||
Closeables.closeQuietly(builder.moduleKeyFactories)
|
||||
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>`).
|
||||
*/
|
||||
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>) {
|
||||
val sourceFile = tempDir.resolve("profiled.pkl").also { it.writeText(pklCode) }
|
||||
val outputFile = tempDir.resolve("profile.pb.gz")
|
||||
|
||||
val process =
|
||||
ProcessBuilder(
|
||||
*launcher(),
|
||||
*subprocessLauncher(),
|
||||
*command,
|
||||
"--profile-cpu-output",
|
||||
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");
|
||||
* 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, "")
|
||||
|
||||
/**
|
||||
* 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 {
|
||||
if (entry.isGlob()) {
|
||||
var theModuleKey =
|
||||
moduleResolver.resolve(moduleKey.resolveUri(IoUtils.toUri(entry.stringValue())));
|
||||
moduleResolver.resolve(
|
||||
IoUtils.resolve(securityManager, moduleKey, IoUtils.toUri(entry.stringValue())));
|
||||
var elements =
|
||||
GlobResolver.resolveGlob(
|
||||
securityManager,
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.pkl.parser.syntax.Module;
|
||||
@TruffleLanguage.Registration(
|
||||
id = "pkl",
|
||||
name = "Pkl",
|
||||
version = "0.33.0-dev",
|
||||
version = "0.33.1",
|
||||
characterMimeTypes = VmLanguage.MIME_TYPE,
|
||||
contextPolicy = ContextPolicy.SHARED)
|
||||
@ProvidedTags(PklTags.Expression.class)
|
||||
|
||||
@@ -288,11 +288,20 @@ public final class VmReference extends VmValue {
|
||||
if (!(key instanceof Long)) {
|
||||
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;
|
||||
}
|
||||
if (clazz.isMappingClass() || clazz.isMapClass()) {
|
||||
var typeArgs = ct.getTypeArguments();
|
||||
if (typeArgs.length == 0) {
|
||||
result.add(UnknownType.INSTANCE);
|
||||
return;
|
||||
}
|
||||
var keyTypes = normalizeTypes(typeArgs[0], clazz, clazz.getModuleClass());
|
||||
for (var kt : iterateTypes(keyTypes)) {
|
||||
if (kt == UnknownType.INSTANCE
|
||||
|
||||
@@ -122,10 +122,6 @@ public final class VmUtils {
|
||||
return Engine.newBuilder("pkl").option("engine.WarnInterpreterOnly", "false").build();
|
||||
}
|
||||
|
||||
public static void closeEngine() {
|
||||
PKL_ENGINE.close(true);
|
||||
}
|
||||
|
||||
static VmTyped createEmptyModule() {
|
||||
return new VmTyped(createEmptyMaterializedFrame(), null, EconomicMaps.create());
|
||||
}
|
||||
|
||||
@@ -292,12 +292,20 @@ public abstract class YamlEmitter {
|
||||
private void emitMultilineString(String str, int newlineIndex, StringBuilder currIndent) {
|
||||
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('|');
|
||||
if (str.charAt(0) == ' ') {
|
||||
if (firstNonNewlineIndex < length && str.charAt(firstNonNewlineIndex) == ' ') {
|
||||
builder.append(indent.length());
|
||||
}
|
||||
|
||||
var length = str.length();
|
||||
if (str.charAt(length - 1) == '\n') {
|
||||
if (length == 1 || str.charAt(length - 2) == '\n') {
|
||||
builder.append('+');
|
||||
|
||||
+8
@@ -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"
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
x = 1
|
||||
+1
@@ -0,0 +1 @@
|
||||
x = 2
|
||||
@@ -150,6 +150,11 @@ mappingAnyKey = Ref<TypeHolder>(null).mappingAnyKey["foo"]
|
||||
// because VmListing/VmMapping don't track their type args
|
||||
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 {
|
||||
renderer {
|
||||
converters {
|
||||
|
||||
+3
@@ -59,6 +59,9 @@ i3 = "one\u{7}two\nthree"
|
||||
j1 = " one\ntwo"
|
||||
j2 = " one\ntwo"
|
||||
j3 = "one\n two"
|
||||
j4 = "\n one"
|
||||
j5 = "\n\n one\ntwo"
|
||||
j6 = "\n \none"
|
||||
|
||||
// trailing spaces in multiline strings
|
||||
k1 = "one\ntwo "
|
||||
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
amends "pkl:Project"
|
||||
|
||||
dependencies { ["a"] = import(".../input-helper/projects/analyzeLocalPackageGlob/PklProject") }
|
||||
+10
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Vendored
+26
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
res = import*("@a/mods/*.pkl").toMap().mapValues((_, m) -> m.x)
|
||||
Vendored
+1
@@ -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}"
|
||||
mappingAnyKey = "${null.mappingAnyKey[foo]}"
|
||||
mappingTypeArgKey = "${null.mappingTypeArgKey[new Listing { \"foo\" }]}"
|
||||
rawListingSubscript = "${null[0].foo}"
|
||||
rawListSubscript = "${null[1].foo}"
|
||||
rawMappingSubscript = "${null[bar].foo}"
|
||||
rawMapSubscript = "${null[2].foo}"
|
||||
+14
-2
@@ -74,6 +74,18 @@ j2: |2-
|
||||
j3: |-
|
||||
one
|
||||
two
|
||||
j4: |2-
|
||||
|
||||
one
|
||||
j5: |2-
|
||||
|
||||
|
||||
one
|
||||
two
|
||||
j6: |2-
|
||||
|
||||
|
||||
one
|
||||
k1: |-
|
||||
one
|
||||
two
|
||||
@@ -83,7 +95,7 @@ k2: |-
|
||||
k3: |-
|
||||
one
|
||||
two
|
||||
l1: |-
|
||||
l1: |2-
|
||||
|
||||
|
||||
l2: |2
|
||||
@@ -91,7 +103,7 @@ l2: |2
|
||||
l3: |2-
|
||||
|
||||
|
||||
l4: |
|
||||
l4: |2
|
||||
|
||||
|
||||
m1: 'foo:'
|
||||
|
||||
Vendored
+39
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
res = Map("@a/mods/one.pkl", 1, "@a/mods/two.pkl", 2)
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
res = 1
|
||||
@@ -16,6 +16,7 @@
|
||||
plugins {
|
||||
id("pklAllProjects")
|
||||
id("pklJavaLibrary")
|
||||
id("pklPublishLibrary")
|
||||
alias(libs.plugins.protobuf)
|
||||
idea
|
||||
}
|
||||
@@ -37,3 +38,14 @@ sourceSets.main { resources { exclude("**/*.proto") } }
|
||||
idea.module { generatedSourceDirs.add(file("build/generated/sources/proto/main/java")) }
|
||||
|
||||
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.")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,7 @@ plugins {
|
||||
id("pklAllProjects")
|
||||
id("pklKotlinLibrary")
|
||||
id("pklNativeLifecycle")
|
||||
id("pklPublishLibrary")
|
||||
}
|
||||
|
||||
val externalReaderFixtureConfiguration = configurations.create("externalReaderFixture")
|
||||
@@ -97,3 +98,14 @@ tasks.testNativeLinuxAmd64 { dependsOn(testLinuxExecutableAmd64) }
|
||||
tasks.testNativeAlpineLinuxAmd64 { dependsOn(testAlpineExecutableAmd64) }
|
||||
|
||||
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.")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -36,7 +36,7 @@
|
||||
///
|
||||
/// Warning: Although this module is ready for initial use,
|
||||
/// benchmark results may be inaccurate or inconsistent.
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.Benchmark
|
||||
|
||||
import "pkl:platform" as _platform
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
/// // ...
|
||||
/// }
|
||||
/// ```
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
open module pkl.Command
|
||||
|
||||
import "pkl:Command"
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
/// @Deprecated { message = "Use `com.example.Birds.Parrot` instead" }
|
||||
/// amends "pkl:PackageInfo"
|
||||
/// ```
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.DocPackageInfo
|
||||
|
||||
// used by doc comments
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
///
|
||||
/// title = "Title displayed in the header of each page"
|
||||
/// ```
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.DocsiteInfo
|
||||
|
||||
import "pkl:reflect"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// Common settings for Pkl's own evaluator.
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
@Since { version = "0.26.0" }
|
||||
module pkl.EvaluatorSettings
|
||||
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@
|
||||
/// value = project
|
||||
/// }
|
||||
/// ```
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.Project
|
||||
|
||||
import "pkl:EvaluatorSettings" as EvaluatorSettingsModule
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
/// These tools differentiate from [pkl:reflect][reflect] in that they parse Pkl modules, but do not
|
||||
/// execute any code within these modules.
|
||||
@Since { version = "0.27.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.analyze
|
||||
|
||||
// used by doc comments
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@
|
||||
/// Fundamental properties, methods, and classes for writing Pkl programs.
|
||||
///
|
||||
/// Members of this module are automatically available in every Pkl module.
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.base
|
||||
|
||||
import "pkl:json"
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// A JSON parser.
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.json
|
||||
|
||||
/// Annotate properties of classes and modules with this class to override how a [JsonRenderer]
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// A [Jsonnet](https://jsonnet.org) renderer.
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.jsonnet
|
||||
|
||||
/// Constructs an [ImportStr].
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
///
|
||||
/// Note that some mathematical functions, such as `sign()`, `abs()`, and `round()`,
|
||||
/// are directly defined in classes [Number], [Int], and [Float].
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.math
|
||||
|
||||
/// The minimum [Int] value: `-9223372036854775808`.
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// Utilities for networking, like URL parsing.
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
@Since { version = "0.33.0" }
|
||||
module pkl.net
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
/// The `pkl-binary` format uses MessagePack encoding.
|
||||
/// Its specification is available at
|
||||
/// <https://pkl-lang.org/main/current/bindings-specification/binary-encoding.html>.
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.pklbinary
|
||||
|
||||
/// Render values as `pkl-binary`.
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// Information about the platform that the current program runs on.
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.platform
|
||||
|
||||
/// The platform that the current program runs on.
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
/// This module is deprecated, and scheduled for removal without replacement.
|
||||
/// For rendering into a protobuf wire format, consider rendering to
|
||||
/// [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" }
|
||||
module pkl.protobuf
|
||||
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
/// * CI pipelines
|
||||
/// * Build graphs
|
||||
/// * Workflow tools
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
@Since { version = "0.32.0" }
|
||||
module pkl.ref
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@
|
||||
/// - Documentation generators (such as *Pkldoc*)
|
||||
/// - Code generators (such as *pkl-codegen-java* and *pkl-codegen-kotlin*)
|
||||
/// - Domain-specific schema validators
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.reflect
|
||||
|
||||
import "pkl:base"
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// Information about the Pkl release that the current program runs on.
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.release
|
||||
|
||||
import "pkl:semver"
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// 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
|
||||
|
||||
/// Tells whether [version] is a valid semantic version number.
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
/// (dirs separated by `:` on Unix, `;` on Windows).
|
||||
/// 5. `/etc/xdg/pkl/settings.pkl`
|
||||
/// 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
|
||||
|
||||
import "pkl:EvaluatorSettings"
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// Utilities for generating shell scripts.
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.shell
|
||||
|
||||
/// Escapes [str] by enclosing it in single quotes.
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// Utilities for managing Pkl source code.
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
@Since { version = "0.33.0" }
|
||||
module pkl.syntax
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
///
|
||||
/// 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.
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
open module pkl.test
|
||||
|
||||
/// Named groups of boolean expressions that are expected to evaluate to [true].
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// An XML renderer.
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.xml
|
||||
|
||||
/// Renders values as XML.
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// A YAML 1.2 compliant YAML parser.
|
||||
@ModuleInfo { minPklVersion = "0.33.0" }
|
||||
@ModuleInfo { minPklVersion = "0.33.1" }
|
||||
module pkl.yaml
|
||||
|
||||
/// Annotate properties of classes and modules with this class to override how a [YamlRenderer]
|
||||
|
||||
Reference in new issue
Block a user