@centralu/host-linux-arm64 0.1.0-beta.36 → 0.1.0-beta.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/host/bundle-info.json +2 -2
- package/host/centralu-package.json +5 -5
- package/host/main.mjs +1959 -608
- package/host/remote-install.mjs +7 -1
- package/package.json +1 -1
package/host/remote-install.mjs
CHANGED
|
@@ -461,6 +461,12 @@ function atLeast(a, b) {
|
|
|
461
461
|
|
|
462
462
|
/** A release a dev build can be cut from: a prerelease, since `<base>.local.N` is SemVer only on one (`isLocalBuildVersion`) */
|
|
463
463
|
const DEV_BASE = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*$/
|
|
464
|
+
/**
|
|
465
|
+
* The placeholder a working copy's version files carry once its release version is stamped from the tag at build time
|
|
466
|
+
* (#1501). A dev build of it would say it is `0.0.0-dev.local.N`, older than every release, so it is refused, by hubs
|
|
467
|
+
* carrying this from before the switch lands.
|
|
468
|
+
*/
|
|
469
|
+
const PLACEHOLDER = /^0\.0\.0-dev(?:\.|$)/
|
|
464
470
|
|
|
465
471
|
/** git in the working copy, by name on PATH as the person runs it there; what it printed, or a refusal */
|
|
466
472
|
function git(repo, args) {
|
|
@@ -509,7 +515,7 @@ export function devBuild(p, { dataDir = process.env.CC_DATA_DIR || join(homedir(
|
|
|
509
515
|
if (changes > 0 && !p.allowDirty) throw new Refusal('dev_dirty', String(changes))
|
|
510
516
|
const shim = JSON.parse(readFileSync(join(repo, 'packaging', 'npm', 'centralu', 'package.json'), 'utf8'))
|
|
511
517
|
const base = String(shim.version ?? '')
|
|
512
|
-
if (!DEV_BASE.test(base) || base.includes('.local.')) throw new Refusal('dev_base', base)
|
|
518
|
+
if (!DEV_BASE.test(base) || base.includes('.local.') || PLACEHOLDER.test(base)) throw new Refusal('dev_base', base)
|
|
513
519
|
const protocol = Number(/export const PROTOCOL_VERSION = (\d+)/.exec(readFileSync(join(repo, 'packages', 'protocol', 'src', 'envelope.ts'), 'utf8'))?.[1])
|
|
514
520
|
if (protocol !== p.protocol) throw new Refusal('dev_protocol', `${protocol} ${p.protocol}`)
|
|
515
521
|
const floor = /(\d+\.\d+\.\d+)/.exec(String(shim.engines?.node ?? ''))?.[1]
|
package/package.json
CHANGED