From a5f7c5b66d0d069c55c3ea5853960892d39d9f3c Mon Sep 17 00:00:00 2001 From: Todd Anderson Date: Thu, 4 Jun 2026 09:17:17 -0400 Subject: [PATCH] chore: Explicitly use generic updater for example/pubspec.yaml. The release-please-action v3 -> v5 upgrade (#262) changed how bare-string `extra-files` entries are resolved: under v3 they fell through to the generic line-based updater, but v5's release-please core now infers the updater from file extension, so `.yaml` binds to the YAML updater. That updater parses and re-serializes the file, stripping all comments (including the `# x-release-please-version` marker on the dep line) and normalizing formatting -- which is exactly what #117 originally worked around. Spell out `{ "type": "generic", "path": "..." }` so the generic updater is selected regardless of the v5 default. Once this lands, release-please will regenerate the 4.17.0 release PR (#287) with a one-line change to example/pubspec.yaml instead of an 80-line rewrite. --- release-please-config.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/release-please-config.json b/release-please-config.json index 6e2ccf32..fbbb9237 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -17,7 +17,10 @@ "include-component-in-tag": false, "extra-files": [ "lib/src/ld_client.dart", - "example/pubspec.yaml" + { + "type": "generic", + "path": "example/pubspec.yaml" + } ] } },