-
Notifications
You must be signed in to change notification settings - Fork 9
docs(deploy): pin Hub Bun recovery version #781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,10 +18,14 @@ | |
| # 0. bun —— hub-daemon.sh 对它是硬依赖,缺了会 fail-closed 停在 | ||
| # 「找不到 bun」。这一步此前只写在脚本注释里,不在步骤里(#778)。 | ||
| # | ||
| # 🔴 装在 nvm 的**当前 node** 下,因为脚本优先解析 | ||
| # ~/.nvm/versions/node/<ver>/bin/bun —— 换 node 版本后需要重装。 | ||
| npm i -g bun # 或按 https://bun.sh/docs/installation | ||
| command -v bun && bun --version # 记下路径:换 node 版本后要重来 | ||
| # 当前生产用 nvm 的 npm 安装,所以 binary 落在当前 node 的 bin 下;换 | ||
| # node 版本后通常要重装。若采用其它布局,必须让 command -v bun 可见, | ||
| # 或在 hub.env 显式设置可执行的 BUN_BIN。 | ||
| BUN_VERSION=1.3.14 | ||
| npm i -g "bun@$BUN_VERSION" | ||
| BUN_BIN="$(command -v bun)" | ||
| test -x "$BUN_BIN" | ||
| test "$("$BUN_BIN" --version)" = "$BUN_VERSION" # 版本不符即停,不拿 future latest 冒充当前运行时 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When AGENTS.md reference: AGENTS.md:L25-L25 Useful? React with 👍 / 👎.
Comment on lines
+26
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When AGENTS.md reference: AGENTS.md:L25-L25 Useful? React with 👍 / 👎.
Comment on lines
+24
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For this critical recovery-path change, the commit claims a Docker install/version-gate run but adds only the README; a repo-wide search finds neither the reported AGENTS.md reference: AGENTS.md:L28-L28 Useful? React with 👍 / 👎. |
||
| # (不要用 `curl … | bash` 一行流:管道退出码只反映 consumer, | ||
| # curl 失败会被吞掉 —— 见 #729 / #733 / #743。) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When Bun is not on the PM2 process's
PATH, the newly documentedhub.envfallback cannot work:deploy/hub/hub-daemon.shresolves and validatesBUN_BINat lines 71–87, but does not sourcehub.envuntil line 129. An operator following this instruction will therefore still get the “找不到 bun” failure; either source the override before resolution or document a location that PM2 actually exports into the launcher environment.AGENTS.md reference: AGENTS.md:L24-L24
Useful? React with 👍 / 👎.