Skip to content

fix(ci): remove openssl-sys dependency via git2 default-features#209

Merged
piorpua merged 1 commit into
mainfrom
fix/remove-openssl-sys-via-git2
May 9, 2026
Merged

fix(ci): remove openssl-sys dependency via git2 default-features#209
piorpua merged 1 commit into
mainfrom
fix/remove-openssl-sys-via-git2

Conversation

@piorpua

@piorpua piorpua commented May 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Disable git2 default features (https, ssh) to completely eliminate openssl-sys from the dependency tree
  • PR#204 only addressed reqwest/tokio-tungstenite, but git2 still pulled openssl-sys via libgit2-syslibssh2-sys
  • Project only uses git2 for local operations (init, commit, status, reset, checkout, branches) — no network features needed

Root Cause

The x86_64-apple-darwin cross-compilation failure at run #25598413909 was caused by openssl-sys still being in the dependency tree through git2's default features.

Changes

  • Cargo.toml: git2 = "0.20"git2 = { version = "0.20", default-features = false }
  • Cargo.lock: removes openssl-sys, libssh2-sys, openssl-probe 0.1.6

Test plan

  • cargo tree -i openssl-sys confirms package no longer exists in tree
  • cargo check -p aionui-app passes
  • cargo check -p aionui-file passes
  • Re-trigger release workflow to verify all 6 targets build successfully

PR#204 switched reqwest/tokio-tungstenite to rustls but git2 still
pulled in openssl-sys through its default "https" and "ssh" features.
Since the project only uses git2 for local repository operations
(init, commit, status, reset, checkout, branches), these network
features are unnecessary.

Disable git2 default features to completely eliminate openssl-sys,
libssh2-sys, and openssl-probe from the dependency tree, fixing the
cross-compilation failure on x86_64-apple-darwin CI target.
@piorpua piorpua merged commit 5753a5a into main May 9, 2026
4 of 5 checks passed
@piorpua piorpua deleted the fix/remove-openssl-sys-via-git2 branch May 9, 2026 10:19
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