Skip to content

fix: make offline installer image index parsing robust#3

Merged
yuanyp8 merged 3 commits into
mainfrom
feat/offline-run-packages
Jun 22, 2026
Merged

fix: make offline installer image index parsing robust#3
yuanyp8 merged 3 commits into
mainfrom
feat/offline-run-packages

Conversation

@yuanyp8

@yuanyp8 yuanyp8 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

修复现场安装失败:

NEW_API_TARGET: unbound variable
REDIS_TARGET: unbound variable
POSTGRES_TARGET: unbound variable
services.redis.image must be a string

Root cause

构建端生成 images/image-index.tsv 时,here-doc 写入的是字面量 \t,而安装端按真正 tab 读取,导致整行无法拆成 component/local_ref/target_ref 三列,最终三个镜像变量没有被赋值。

Fix

  • 构建端改用 printf 写真正 TSV。
  • Compose 安装器兼容旧格式字面量 \t
  • K8s 安装器兼容旧格式字面量 \t
  • 安装器读取前先清空镜像变量,读取后强校验 new-api/redis/postgres 三个 component。
  • 如果索引缺失或格式错误,提前打印 image-index.tsv 前 20 行并退出,不再渲染空 image。

Notes

需要重新跑 GitHub Actions 生成新的 .run 包。已经下载到现场的旧 .run 包内嵌的是旧安装器,不能原地修复。

@yuanyp8 yuanyp8 merged commit 9db208a into main Jun 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant