diff --git a/internal/check-share-policy.mjs b/internal/check-share-policy.mjs index 0bc634c94..70ca86d36 100644 --- a/internal/check-share-policy.mjs +++ b/internal/check-share-policy.mjs @@ -28,10 +28,16 @@ // is currently REAL on two bundles — recorded below as known debt rather than // silently passing, so the count cannot drift without someone deciding. import { readFileSync, existsSync, readdirSync } from 'node:fs' -import { resolve, join } from 'node:path' +import { resolve, join, dirname } from 'node:path' +import { fileURLToPath } from 'node:url' +// Same fix as check-zone-census.mjs, same reason. DOXA_REPO still wins; only the FALLBACK moved +// off an absolute path into one author's worktree. check:no-abs-paths rejects those outright — "a +// clone must work on any machine" — and it runs inside build:unlocked, so the hardcoded default +// turned the whole build red for every builder. This is the idiom that gate names in its own +// failure text, and the one every sibling script here uses. const REPO = process.env.DOXA_REPO - || resolve('/home/lk10x/Workspace/eco-dx/root-doxa-maps/wt-packet') + || resolve(dirname(fileURLToPath(import.meta.url)), '..') const DESIGNS = join(REPO, 'plugin-designs') // The decided policy, per bundle. A map bundle MUST appear here — an unlisted one