From 031b1eb3763c49575b650bee72d4293d30cab019 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Thu, 11 Jun 2026 10:58:33 +0300 Subject: [PATCH] chore: Add a hint to not modify patches-list.json by hand. Remove 'v' from version tag that not used during release --- patches-list.json | 5 +++-- patches/src/main/kotlin/util/PatchListGenerator.kt | 8 +++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/patches-list.json b/patches-list.json index 4a377aeda..4c932cb89 100644 --- a/patches-list.json +++ b/patches-list.json @@ -1,4 +1,5 @@ { - "version": "", + "NOTE": "Do NOT manually edit this file. This file is automatically updated when semantic release (release.yml) runs. Manually editing this file can break your releases and break third party tools that use this file.", + "version": "0.0.0", "patches": [] -} +} \ No newline at end of file diff --git a/patches/src/main/kotlin/util/PatchListGenerator.kt b/patches/src/main/kotlin/util/PatchListGenerator.kt index e2264ab08..62d43a430 100644 --- a/patches/src/main/kotlin/util/PatchListGenerator.kt +++ b/patches/src/main/kotlin/util/PatchListGenerator.kt @@ -88,7 +88,13 @@ private fun generatePatchList(version: String, patches: Set>) { .create() val jsonObject = JsonObject() - jsonObject.addProperty("version", "v$version") + jsonObject.addProperty( + "NOTE", + "Do NOT manually edit this file. This file is automatically updated when " + + "semantic release (release.yml) runs. Manually editing this file can break " + + "your releases and break third party tools that use this file." + ) + jsonObject.addProperty("version", version) jsonObject.add("patches", gson.toJsonTree(patchesMap)) listJson.writeText(gson.toJson(jsonObject))