From 005eb5cf393884836258cea2c1d0170ed3e85718 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Mon, 25 May 2026 23:35:38 -0500 Subject: [PATCH] fix(updates_xml): treat 'development' and 'dev' as same channel in preservation Legacy/manual entries used development while the CLI writes dev. Without this alias, old entries survived preservation and created duplicate dev channel entries. Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) --- cli/updates_xml_build.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/updates_xml_build.php b/cli/updates_xml_build.php index 025945c..e5c88bc 100644 --- a/cli/updates_xml_build.php +++ b/cli/updates_xml_build.php @@ -339,6 +339,8 @@ if (file_exists($dest)) { for ($i = 0; $i <= $stabilityIndex; $i++) { $writtenChannels[] = $stabilityTagMap[$allChannels[$i]] ?? $allChannels[$i]; } + // Also match legacy/alternate tag names (e.g. 'development' = 'dev') + $writtenChannels[] = 'development'; // alias for 'dev' foreach ($existingXml->update as $existingUpdate) { $existingTag = '';