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:
@@ -8,7 +8,7 @@ const path = require('path');
|
||||
const { cleanup } = require('./helpers.cjs');
|
||||
|
||||
// Built lib is the test target (same surface the rest of the suite imports).
|
||||
const capabilityLock = require('../gsd-core/bin/lib/capability-lock.cjs');
|
||||
const capabilityLock = require('../msd-core/bin/lib/capability-lock.cjs');
|
||||
const { acquireLock } = capabilityLock;
|
||||
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
@@ -45,7 +45,7 @@ function failMkdirFor(t, targetDir, code) {
|
||||
|
||||
describe('acquireLock surfaces mkdir failure fast (#3987, same class as #1884)', () => {
|
||||
test('EACCES creating the lock directory is surfaced immediately, not laundered into a "lock unavailable" null', (t) => {
|
||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-caplock-mkdir-fail-'));
|
||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-caplock-mkdir-fail-'));
|
||||
t.after(() => cleanup(tmpDir));
|
||||
|
||||
const lockDir = path.join(tmpDir, 'nested', 'sub');
|
||||
@@ -60,7 +60,7 @@ describe('acquireLock surfaces mkdir failure fast (#3987, same class as #1884)',
|
||||
});
|
||||
|
||||
test('ENOSPC creating the lock directory is surfaced immediately', (t) => {
|
||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-caplock-mkdir-fail-'));
|
||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-caplock-mkdir-fail-'));
|
||||
t.after(() => cleanup(tmpDir));
|
||||
|
||||
const lockDir = path.join(tmpDir, 'nested', 'sub');
|
||||
@@ -75,7 +75,7 @@ describe('acquireLock surfaces mkdir failure fast (#3987, same class as #1884)',
|
||||
});
|
||||
|
||||
test('the thrown mkdir-failure error is never returned as a lock handle or null', (t) => {
|
||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-caplock-mkdir-fail-'));
|
||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-caplock-mkdir-fail-'));
|
||||
t.after(() => cleanup(tmpDir));
|
||||
|
||||
const lockDir = path.join(tmpDir, 'nested', 'sub');
|
||||
@@ -95,7 +95,7 @@ describe('acquireLock surfaces mkdir failure fast (#3987, same class as #1884)',
|
||||
|
||||
test('normal path is unaffected: a creatable lock directory still acquires a lock', (t) => {
|
||||
// No monkeypatch — the lock directory is creatable in the writable tmpDir.
|
||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-caplock-mkdir-ok-'));
|
||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-caplock-mkdir-ok-'));
|
||||
t.after(() => cleanup(tmpDir));
|
||||
|
||||
const lockPath = path.join(tmpDir, 'nested', 'sub', '.lock');
|
||||
|
||||
Reference in New Issue
Block a user