Skip to content

fix: 补齐 ruby-uri 依赖并在启动前检查 - #5316

Open
eyaeya wants to merge 1 commit into
vernesong:devfrom
eyaeya:fix/ruby-uri-startup
Open

eyaeya wants to merge 1 commit into
vernesong:devfrom
eyaeya:fix/ruby-uri-startup

Conversation

@eyaeya

@eyaeya eyaeya commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

0.47.162 在 yml_change.sh 中新增了 -ruri,但没有声明 ruby-uri 依赖。缺少这个库时,配置覆写会直接退出,端口和 TUN 设置没有生效,最后表现为等待约 20 分钟后报配置初始化超时。#5315 中的启动失败可以由此复现。

这次补上包依赖和 README 中的依赖说明,并让现有 config_check 同时加载 uri、保留标准错误。缺库时会直接走已有的启动失败处理,日志也能看到具体的 LoadError。

验证:

  • 新增 tests/test_ruby_uri_startup.sh,覆盖有效 YAML、非法 YAML、缺少 URI 时停止启动并记录原因,以及包依赖声明。缺库用例在修复前失败,修复后全部通过。
  • 测试已分别在 macOS / Ruby 2.6 和 iStoreOS / Ruby 3.0 / BusyBox ash 下通过;路由器测试在临时目录运行。
  • 运行脚本及测试的 Bash 语法检查、init 的 BusyBox ash 语法检查、po2lmo 构建和 git diff --check 均通过。
  • 未运行完整 OpenWrt SDK 打包。

Refs #5315,处理其中缺少 ruby-uri 导致启动超时的问题。

This branch has not been deployed

No deployments
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