Skip to content

fix: extract openssl-sys root line before vendored check in diagnose step - #169

Merged
bash0816 merged 1 commit into
mainfrom
fix/codex-0149-diagnostic-headline-bug
Aug 22, 2026
Merged

fix: extract openssl-sys root line before vendored check in diagnose step#169
bash0816 merged 1 commit into
mainfrom
fix/codex-0149-diagnostic-headline-bug

Conversation

@bash0816

Copy link
Copy Markdown
Owner

説明

「Diagnose openssl-sys dependency path」ステップのバグを修正しました。

cargo tree の出力にダウンロード進捗メッセージが混入する場合、head -1 がメッセージを拾ってしまい、実際には vendored 機能が有効なのに「vendored が無い」という誤ったエラーでビルドが停止していました。

修正内容:

  • cargo tree の出力から openssl-sys で始まる実際のルート行を先に抽出してから vendored 判定を実行
  • Run 32564299897 で発生した実装問題を解決

修正対象

  • .github/workflows/external-build-android-aarch64.yml 852行目
  • 変更前: echo "$OUT" | head -1 | grep -q 'vendored' || {
  • 変更後: echo "$OUT" | grep '^openssl-sys ' | head -1 | grep -q 'vendored' || {

…step

cargo tree's output may include download progress messages (e.g. 'Downloading crates ...')
at the beginning. Using head -1 directly on this output causes a false negative when
checking for the vendored feature. Extract the openssl-sys root line first using
grep '^openssl-sys ' to ensure we're checking the actual dependency line.

Fixes run 32564299897 where vendored was present but wrongly reported as missing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@bash0816
bash0816 merged commit fd8d194 into main Aug 22, 2026
2 checks passed
@bash0816
bash0816 deleted the fix/codex-0149-diagnostic-headline-bug branch August 22, 2026 17:18
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