Jen Basch
1d60a7c29a
Fix spotless ratcheting on release branches ( #1401 )
2026-01-09 14:19:16 -08:00
Jen Basch
a4879728fd
Fix doc links from pkl:base to pkl:math ( #1400 )
2026-01-09 11:31:31 -08:00
Daniel Chao
4e3f9da0c2
Really prepare 0.30.2 release ( #1373 )
0.30.2
2025-12-15 11:17:47 -08:00
Daniel Chao
8173c4aaad
Prepare 0.30.2 release ( #1372 )
2025-12-15 11:12:56 -08:00
Daniel Chao
2513ddb13d
Fix formatting of nodes with no children ( #1351 )
...
For example, this fixes an issue where an empty module turns into ` \n`.
Closes https://github.com/apple/pkl/issues/1348
---------
Co-authored-by: Jen Basch <jbasch94@gmail.com >
2025-12-15 10:24:16 -08:00
Daniel Chao
a945f00c63
Omit superfluous newline when writing formatted content to stdout ( #1350 )
...
Fixes an issue where an extra newline is added when writing formatted
code to stdout.
Closes https://github.com/apple/pkl/issues/1346
2025-12-15 10:24:09 -08:00
Daniel Chao
ab23ab2dc1
Build linux executables that link to glibc 2.17 ( #1352 )
...
Fixes an unintentional breakage in 0.30.1 that bumped the required glibc to 2.34.
2025-12-15 10:23:57 -08:00
Islon Scherer
c480cc8118
Fix bug in parsing of super expression ( #1364 )
2025-12-15 10:23:16 -08:00
Jen Basch
36af9382c5
Fix release publishing ( #1343 )
0.30.1
2025-12-03 15:14:30 -08:00
Daniel Chao
a3075d0d9f
Fix testing of pkldoc executables ( #1342 )
...
These tests are actually not running right now.
2025-12-03 15:14:24 -08:00
Daniel Chao
18af7571e8
CI job polish ( #1341 )
...
Avoids issues where setup-java post-task cacheing will hang with "device
or resource busy".
2025-12-03 15:14:18 -08:00
Jen Basch
5b6ee977c9
Prepare 0.30.1 release
2025-12-03 13:35:58 -08:00
Jen Basch
dca6da83b2
Prepare 0.30.1 release ( #1338 )
2025-12-03 12:16:15 -08:00
Jen Basch
7711a1612c
Fix fetch depth for gradle-compatibility and java-executables-* CI jobs ( #1339 )
2025-12-03 10:35:35 -08:00
Daniel Chao
4f3f28aa76
Fix parsing of URLs with plus signs ( #1335 )
...
This fixes an issue where URLs with schemes that contain `+`, `-`, and
`.` would not be parsed correctly.
For example, `foo+bar:///?baz.pkl` would turn into
`foo+bar:///%3Fbaz.pkl`. The query param is lost, and turned into the
path.
2025-12-03 10:22:10 -08:00
Jen Basch
99ba9be765
Vendor paguro's RrbTree, fix an int overflow breaking large Lists ( #1337 )
2025-12-03 09:45:42 -08:00
Islon Scherer
bffc50ea10
Fix snapshot publishing ( #1330 )
2025-12-03 09:45:35 -08:00
Spencer Phillip Young
c63b8d3965
Fix newline checks in parser ( #1328 )
2025-12-03 09:45:28 -08:00
Spencer Phillip Young
5516cdb210
Fix empty parenthesized type unexpected error ( #1323 )
2025-12-03 09:44:45 -08:00
Daniel Chao
a8b6081a90
Fix macos/amd64 image builds ( #1322 )
2025-12-03 09:44:32 -08:00
Daniel Chao
cab7bd1b01
Fix deploy jobs ( #1319 )
...
Specify `merge-multiple` to prevent new directories from being created
when downloading artifacts.
2025-12-03 09:44:23 -08:00
Daniel Chao
1b29d59b21
Replace broken references to CircleCI ( #1318 )
2025-12-03 09:44:17 -08:00
Daniel Chao
e5577ed8f0
Fix release builds ( #1317 )
...
In order to preserve the folder hierarchy in our uploaded artifact,
we need to insert a wildcard in the root path.
Also, fix fan-in of tasks that lead to the publish test result task.
2025-12-03 09:44:01 -08:00
Daniel Chao
c965281d46
Fix build java executable ( #1316 )
2025-12-03 09:43:46 -08:00
Daniel Chao
718898d083
Switch to GitHub Actions ( #1315 )
...
This switches our builds over to GitHub Actions!
TODO:
* Add macOS/amd64 native-image builds; this isn't working right now
* Patch musl with security patches
* Add benchmark jobs over time
As part of this build, PRBs will now only run `./gradlew check` on Linux,
but other jobs can be run using slash commands, e.g. `[windows]`
to run `./gradle check` on Windows.
2025-12-03 09:43:37 -08:00
Islon Scherer
d33736625e
Fix Map formatting ( #1312 )
2025-12-03 09:43:29 -08:00
Daniel Chao
53dcac56d0
Disable spotless ratcheting of Pkl sources ( #1295 )
...
This causes spotless to _always_ format Pkl files, instead of only
formatting them if there's a diff between the file and what's in main.
This means that formatting changes in pkl-formatter will be propagated
to the standard library.
2025-12-03 09:42:41 -08:00
Dan Chao
687ce0f97b
Apply spotless formatting
2025-12-03 09:42:30 -08:00
Jen Basch
8c82051a4b
Update CLI docs to clarify that --version only applies to the root command ( #1326 )
2025-11-19 15:34:42 -08:00
Dan Chao
e99d145299
Prepare 0.30.0 release
0.30.0
2025-11-03 10:38:43 -08:00
Jen Basch
5c944600fa
Use 2xlarge resource class for gradle check in CI ( #1291 )
2025-11-03 10:31:16 -08:00
Islon Scherer
5030061412
Fix ordering issue in formatter ( #1289 )
2025-11-03 18:52:38 +01:00
Daniel Chao
219e766003
Make format command write relative paths ( #1290 )
2025-11-03 09:52:29 -08:00
Daniel Chao
d29ae07e14
Fix formatting of argument lists ( #1283 )
...
This fixes several issues:
1. Leading/trailing line comments surrounding a lambda should make that
lambda not "trailing", because the formatting otherwise looks bad and
also isn't stable
2. Fix incorrect algorithm for detecting trailing lambda (currently,
any number of lambdas makes the alg return `true`)
2025-11-03 09:15:58 -08:00
Islon Scherer
4226c21a42
Fix multiline string stability ( #1287 )
2025-11-03 17:41:43 +01:00
Daniel Chao
40c88930c5
Normalize paths in pkl format ( #1286 )
2025-11-03 08:24:04 -08:00
Daniel Chao
d5beb3f331
Fix flag name ( #1285 )
2025-11-03 08:23:35 -08:00
Daniel Chao
d8adb28dd1
Respect line breaks in operator chains and argument lists ( #1268 )
...
If an operator chain or method call is multiline, keep those newlines
in the formatted output.
Help preserve code like:
```
foo
|> (it) -> it + 2
|> (it) -> it / 2
```
2025-11-02 21:51:37 -08:00
Daniel Chao
85529c9b7e
Add debug and run button for snippet tests ( #1281 )
2025-10-31 12:28:03 -07:00
Islon Scherer
50541d9cda
Make formatter stable ( #1273 )
2025-10-31 18:58:22 +01:00
Daniel Chao
ea778a7e7a
Don't force multiline interpolation into a single line ( #1280 )
...
Also, fixes an issue where forced single-line formatting would break for if/else
and let expressions
---------
Co-authored-by: Islon Scherer <islonscherer@gmail.com >
2025-10-31 10:47:53 -07:00
Jen Basch
ffc9167bf5
Switch yaml.Parser to parse binary scalars as Bytes ( #1277 )
2025-10-30 16:45:59 -07:00
Daniel Chao
ede48d0fff
Fix pkl spotless ( #1279 )
2025-10-30 16:17:08 -07:00
Jen Basch
eab71229e7
Add support for rendering Bytes values with YamlRenderer ( #1276 )
2025-10-30 15:53:43 -07:00
Daniel Chao
10eccb100c
Fix Pkl spotless formatting ( #1278 )
2025-10-30 15:36:30 -07:00
Jen Basch
2c18f13d08
Rename Config.from to Config.fromPklBinary ( #1275 )
2025-10-30 11:04:03 -07:00
Jen Basch
9427387019
Add release notes for 0.30 ( #1261 )
...
Co-authored-by: Dan Chao <dan.chao@apple.com >
2025-10-30 10:09:35 -07:00
Islon Scherer
db800d4521
Fix trailing lambda ending wrap ( #1274 )
2025-10-30 17:06:09 +01:00
Jen Basch
08c414f3ac
Normalize mutli-line string indentation ( #1271 )
2025-10-30 08:30:30 -07:00
Islon Scherer
9469dd885d
Handle trailing commas in types ( #1272 )
2025-10-30 13:36:56 +01:00