idempotency: docs table, pitfall 9, changelog; lock scan fix

This commit is contained in:
CRTkafa 2026-10-11 20:03:23 +00:00
parent 1642a7b123
commit 329f59060b
4 changed files with 54 additions and 2 deletions

View file

@ -66,7 +66,9 @@ const READ_SUBS = new Set(['status', 'list', 'devices', 'diff', 'export', 'pull'
* writes, both for `prices import`, `revenuecat-<project>` for revenuecat sync. Pure.
*/
export function lockKeys(command: string, args: Args, config: ShipConfig): string[] {
if (args.has('dry')) return [];
// a dry run never writes, so it never waits for (or blocks) a writer
const readOnly = args.has('dry');
if (readOnly) return [];
const sub = args._[0];
const apple = config.apple?.bundleId ? [`apple-${config.apple.bundleId}`] : [];
const play = config.play?.packageName ? [`play-${config.play.packageName}`] : [];