fix/verify-remote-self-hosted
main
verify-remote.mjs 硬编码上游 Aisland-SJL/dsh-worktable 与 github.com, 在本仓(xiaoqu/dsh-worktable)发布后无法核对远端资产——npm run verify:remote 必然失败,等于发布验收链路断了一环。
verify-remote.mjs
Aisland-SJL/dsh-worktable
github.com
xiaoqu/dsh-worktable
npm run verify:remote
SLARK_WT_HOST
SLARK_WT_REPO
tar
--force-local
C:\...
Cannot connect to C: resolve failed
SLARK_WT_HOST=https://gitea.ququclean.com SLARK_WT_REPO=xiaoqu/dsh-worktable npm run verify:remote -- --expect-sha cf633ad7… v0.5.3-local.5
输出:
[verify-remote] structure ok (7 files) [verify-remote] version = 0.5.3-local.5 [verify-remote] fixed-name sha256: cf633ad7… [verify-remote] versioned sha256: cf633ad7… [verify-remote] PASS: v0.5.3-local.5 — 文件名/结构/版本/SHA 同源+远端=验收SHA/安装/导入 全部通过
verify-remote.mjs 原本硬编码上游 Aisland-SJL/dsh-worktable 与 github.com, 在本仓(xiaoqu/dsh-worktable)发布时无法核对远端。 - 新增 SLARK_WT_HOST / SLARK_WT_REPO 环境变量覆盖,默认保持上游行为 - tar 调用加 --force-local:Windows 上 GNU tar 会把 "C:\..." 的盘符 当成 rsh 远端主机,报 Cannot connect to C: resolve failed 验证:SLARK_WT_HOST=https://gitea.ququclean.com SLARK_WT_REPO=xiaoqu/dsh-worktable npm run verify:remote -- --expect-sha cf633ad7… v0.5.3-local.5 → PASS (文件名/结构/版本/SHA 同源 + 远端=验收 SHA/安装/导入)
No dependencies set.
The note is not visible to the blocked user.
问题
verify-remote.mjs硬编码上游Aisland-SJL/dsh-worktable与github.com,在本仓(
xiaoqu/dsh-worktable)发布后无法核对远端资产——npm run verify:remote必然失败,等于发布验收链路断了一环。
改动
SLARK_WT_HOST/SLARK_WT_REPO环境变量覆盖,默认保持上游行为不变tar调用加--force-local:Windows 上 GNU tar 把C:\...的盘符当成rsh 远端主机,报
Cannot connect to C: resolve failed验证
输出: