From 9e1303ed57cc484967ab0f6514946bd81ad3af85 Mon Sep 17 00:00:00 2001 From: Daniel Chao Date: Tue, 4 Nov 2025 05:31:49 -0800 Subject: [PATCH] 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. --- buildSrc/src/main/kotlin/pklSpotlessFormat.gradle.kts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildSrc/src/main/kotlin/pklSpotlessFormat.gradle.kts b/buildSrc/src/main/kotlin/pklSpotlessFormat.gradle.kts index f2ddc622..839d14bc 100644 --- a/buildSrc/src/main/kotlin/pklSpotlessFormat.gradle.kts +++ b/buildSrc/src/main/kotlin/pklSpotlessFormat.gradle.kts @@ -27,6 +27,9 @@ spotless { rootProject.file("buildSrc/src/main/resources/license-header.line-comment.txt"), "/// ", ) + // disable ratcheting for Pkl sources + // make any change to pkl-formatter reformat the stdlib + ratchetFrom = null } }