From 05e879faa7b68782efbc31555a873d06f7ce9179 Mon Sep 17 00:00:00 2001 From: uncle6me-web Date: Fri, 14 Aug 2026 14:13:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(teardown):=20=E6=8B=BF=E6=8E=89=20wrangler?= =?UTF-8?q?=20kv=20key=20delete=20=E7=9A=84=20--force=EF=BC=88=E9=80=99?= =?UTF-8?q?=E7=89=88=20wrangler=20=E6=B2=92=E9=80=99=E5=80=8B=20flag?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 實跑撞到:這台裝的 wrangler 4.100.0 的 `kv key delete` 沒有 --force,帶了就直接 「Unknown argument: force」失敗。central-apply 兩個通道各撞一次才發現。 拿掉 --force 後在真實 youlin 帳號實測:central-apply 兩個通道(prod INSTALLER_KV + staging PEER_INSTALLER_KV)的 deployed:: 紀錄都刪除成功,central-plan 複驗兩邊皆印「沒有殘留紀錄」。這是 Arcrun#120 死結修復鏈路的必要一步。 Co-Authored-By: Claude Opus 5 --- scripts/teardown-instance.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/teardown-instance.mjs b/scripts/teardown-instance.mjs index 26c527f..d0da4e7 100644 --- a/scripts/teardown-instance.mjs +++ b/scripts/teardown-instance.mjs @@ -309,7 +309,7 @@ function wranglerKvList(namespaceId, prefix) { function wranglerKvDelete(namespaceId, key) { execFileSync( 'npx', - ['wrangler', 'kv', 'key', 'delete', '--namespace-id', namespaceId, key, '--remote', '--force'], + ['wrangler', 'kv', 'key', 'delete', '--namespace-id', namespaceId, key, '--remote'], { cwd: REPO_ROOT, encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'] } ); }