refactor: hard-fork GSD -> MSD (Make Software Done)
Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD across contents and paths, upstream package/repo coordinates -> @golem15/msd-core and golem15com/msd-core. Deep links into upstream history, sibling upstream packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is. Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line, package/plugin identity, regenerated lockfile, install-tree fixtures, derived registries and benchmark baseline; migration checksum baseline re-locked (MSD keeps its own install state, so no install had applied the old sums); sort-order and regex-escaped expectations in tests adjusted.
This commit is contained in:
@@ -19,7 +19,7 @@ const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const os = require('node:os');
|
||||
|
||||
const { buildPlanningSnapshot } = require('../gsd-core/bin/lib/planning-snapshot.cjs');
|
||||
const { buildPlanningSnapshot } = require('../msd-core/bin/lib/planning-snapshot.cjs');
|
||||
|
||||
function fsError(code, targetPath) {
|
||||
const err = new Error(`${code}: operation failed. scandir '${targetPath}'`);
|
||||
@@ -48,7 +48,7 @@ function scopeOf(snapshot) {
|
||||
|
||||
describe('#1883 (live path, #3813): an unreadable milestones/ dir is UNREADABLE, never silent emptiness', () => {
|
||||
test('a permission (EACCES) failure yields scope UNREADABLE, not COMPLETE', (t) => {
|
||||
const planBase = path.join(os.tmpdir(), 'gsd-1883live-eacces-' + process.pid);
|
||||
const planBase = path.join(os.tmpdir(), 'msd-1883live-eacces-' + process.pid);
|
||||
injectMilestonesFault(t, 'EACCES', path.join(planBase, 'milestones'));
|
||||
const snap = buildPlanningSnapshot(planBase);
|
||||
assert.equal(
|
||||
@@ -59,14 +59,14 @@ describe('#1883 (live path, #3813): an unreadable milestones/ dir is UNREADABLE,
|
||||
});
|
||||
|
||||
test('any non-ENOENT failure (EIO) yields scope UNREADABLE', (t) => {
|
||||
const planBase = path.join(os.tmpdir(), 'gsd-1883live-eio-' + process.pid);
|
||||
const planBase = path.join(os.tmpdir(), 'msd-1883live-eio-' + process.pid);
|
||||
injectMilestonesFault(t, 'EIO', path.join(planBase, 'milestones'));
|
||||
const snap = buildPlanningSnapshot(planBase);
|
||||
assert.equal(scopeOf(snap), 'unreadable', 'every non-ENOENT error must flag UNREADABLE');
|
||||
});
|
||||
|
||||
test('an absent milestones/ dir (ENOENT) is a genuine empty: COMPLETE + []', () => {
|
||||
const planBase = path.join(os.tmpdir(), 'gsd-1883live-absent-' + process.pid);
|
||||
const planBase = path.join(os.tmpdir(), 'msd-1883live-absent-' + process.pid);
|
||||
const snap = buildPlanningSnapshot(planBase);
|
||||
const field = snap.archivedPhaseTokens;
|
||||
assert.equal(field.scope, 'complete', 'genuine absence stays COMPLETE');
|
||||
|
||||
Reference in New Issue
Block a user