ci: link package deps for telegram acceptance · openclaw/openclaw@377553e
steipete
·
2026-04-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -221,10 +221,34 @@ trap 'status=$?; dump_hotpath_logs "$status"; exit "$status"' ERR
|
221 | 221 | |
222 | 222 | command -v openclaw |
223 | 223 | openclaw --version |
224 | | -# The mounted QA harness imports openclaw/plugin-sdk; point that package import |
225 | | -# at the installed package without copying source into the test image. |
226 | 224 | mkdir -p /app/node_modules |
227 | | -ln -sfn /npm-global/lib/node_modules/openclaw /app/node_modules/openclaw |
| 225 | +openclaw_package_dir="/npm-global/lib/node_modules/openclaw" |
| 226 | +# The mounted QA harness imports openclaw/plugin-sdk and package dependencies; |
| 227 | +# point those imports at the installed package without copying source into the test image. |
| 228 | +ln -sfn "$openclaw_package_dir" /app/node_modules/openclaw |
| 229 | +for deps_dir in "$openclaw_package_dir/node_modules" /npm-global/lib/node_modules; do |
| 230 | + [ -d "$deps_dir" ] || continue |
| 231 | + for dependency_dir in "$deps_dir"/*; do |
| 232 | + [ -e "$dependency_dir" ] || continue |
| 233 | + dependency_name="$(basename "$dependency_dir")" |
| 234 | + case "$dependency_name" in |
| 235 | + .bin | openclaw) |
| 236 | + continue |
| 237 | + ;; |
| 238 | + @*) |
| 239 | + [ -d "$dependency_dir" ] || continue |
| 240 | + mkdir -p "/app/node_modules/$dependency_name" |
| 241 | + for scoped_dependency_dir in "$dependency_dir"/*; do |
| 242 | + [ -e "$scoped_dependency_dir" ] || continue |
| 243 | + ln -sfn "$scoped_dependency_dir" "/app/node_modules/$dependency_name/$(basename "$scoped_dependency_dir")" |
| 244 | + done |
| 245 | + ;; |
| 246 | + *) |
| 247 | + ln -sfn "$dependency_dir" "/app/node_modules/$dependency_name" |
| 248 | + ;; |
| 249 | + esac |
| 250 | + done |
| 251 | +done |
228 | 252 | |
229 | 253 | echo "Running installed-package onboarding recovery hot path..." |
230 | 254 | OPENAI_API_KEY="${OPENAI_API_KEY:-sk-openclaw-npm-telegram-hotpath}" openclaw onboard --non-interactive --accept-risk \ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。