Round 1 is a code and test review and won't land. land-work fails at BASE on the read.mjs 3b pin, which row 49 removes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
26 lines
1.2 KiB
Diff
26 lines
1.2 KiB
Diff
diff --git a/scripts/land-work/read.mjs b/scripts/land-work/read.mjs
|
|
index 495a069eb..2402ed440 100644
|
|
--- a/scripts/land-work/read.mjs
|
|
+++ b/scripts/land-work/read.mjs
|
|
@@ -10,18 +10,14 @@
|
|
// "refuse<TAB>reason<TAB>detail" line and exit 2. A missing or unsafe
|
|
// database or business file exits 3.
|
|
//
|
|
-// Kept in step with packages/bus/src/store.mjs, which this imports from:
|
|
-// the schema_version literal '3b' below is a copy of the Store's. A schema
|
|
-// bump changes it there, and until it changes here every read refuses
|
|
-// bus-schema.
|
|
+// Schema version and digest follow the Store exports; a schema bump has one authority.
|
|
import { DatabaseSync } from 'node:sqlite';
|
|
import { readFileSync, lstatSync } from 'node:fs';
|
|
import { join } from 'node:path';
|
|
import { pathToFileURL } from 'node:url';
|
|
import { createHash } from 'node:crypto';
|
|
-import { schemaDigest, SCHEMA_SHA256 } from '../../packages/bus/src/store.mjs';
|
|
+import { schemaDigest, SCHEMA_SHA256, SCHEMA_VERSION } from '../../packages/bus/src/store.mjs';
|
|
|
|
-const SCHEMA_VERSION = '3b';
|
|
const MERGE = 'git.merge.protected';
|
|
const WORK_REF = /^work\/vikunja-([1-9][0-9]*)-([1-9][0-9]*)$/;
|
|
const ANY_WORK_REF = /\bwork\/[A-Za-z0-9._/-]*[A-Za-z0-9_]/g;
|