Skip to content

Commit a09dc22

Browse files
committed
fix: fix pkl formatting staging and use pre-define pkl step
1 parent 3b6d491 commit a09dc22

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Shared.pkl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,12 @@ prettier = (Builtins.prettier) {
1414
exclude = List(".github/workflows/tf-*", "CHANGELOG.md")
1515
}
1616

17-
pkl = new Config.Step {
18-
glob = "*.pkl"
19-
check = new Config.Script {
20-
linux = "pkl eval {{files}} >/dev/null"
21-
macos = "pkl eval {{files}} >/dev/null"
22-
windows = "pkl eval {{files}} >nul"
23-
}
24-
}
17+
pkl = Builtins.pkl
2518

2619
// Note: supported since pkl 0.30 - https://pkl-lang.org/main/current/release-notes/0.30.html
20+
// TODO use Builtins.pkl_format as soon as hk is released (>1.25.0)
2721
pklformat = new Config.Step {
22+
stage = "<JOB_FILES>"
2823
glob = "*.pkl"
2924
check = "pkl format --silent {{files}}"
3025
// exit code of pkl format is 1 if changes were made, so we first attempt to write changes with -w, and if that fails, we run again with --silent to ensure a zero exit code on success

0 commit comments

Comments
 (0)