Skip to content

fix: replace cargo generate-lockfile with targeted Cargo.lock edits for Android build - #170

Merged
bash0816 merged 1 commit into
mainfrom
fix/codex-0149-lockfile-direct-edit
Aug 22, 2026
Merged

fix: replace cargo generate-lockfile with targeted Cargo.lock edits for Android build#170
bash0816 merged 1 commit into
mainfrom
fix/codex-0149-lockfile-direct-edit

Conversation

@bash0816

Copy link
Copy Markdown
Owner

Replaces the full cargo generate-lockfile re-resolve (which was drifting rama-* pins to versions requiring rustc 1.96.0, incompatible with the build environment's rustc 1.95.0) with a deterministic direct edit of exactly two Cargo.lock deltas: codex-http-client gains openssl-sys, codex-thread-store gains libc. Both insertions fail closed if the target package block is not found exactly once. Design reviewed and Go'd in G1/G2 (GPT-5.6-terra), including verification against the actual upstream rust-v0.149.0 Cargo.lock.

…or Android build (codex 0.149.0)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017oSojxW9njDBs5WTt9pLGZ

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 095baa55c3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +39 to +40
if new_dep in dep_names:
raise ValueError(f"dependency already present: {new_dep}")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Treat already-present dependencies as a no-op

When a supported upstream release already includes either Android dependency in Cargo.lock, this exception aborts the workflow even though the surrounding manifest patches explicitly treat existing dependencies as already applied. Because the workflow accepts future rust-v0.1xx releases and invokes this script unconditionally, upstreaming either fix will turn a valid lockfile into a build failure; return the unchanged lockfile when new_dep is already present while retaining the uniqueness and format checks.

Useful? React with 👍 / 👎.

@bash0816
bash0816 merged commit cebe77a into main Aug 22, 2026
5 checks passed
@bash0816
bash0816 deleted the fix/codex-0149-lockfile-direct-edit branch August 22, 2026 22:55
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