Skip to content

Conversation

@xsoheilalizadeh
Copy link

@xsoheilalizadeh xsoheilalizadeh commented Nov 18, 2025

Fixes #4373

Enable statically-linked musl binaries for x86_64 and aarch64 by using
vendored libgit2. This resolves the linking issues that previously
caused musl builds to fail in CI.

Changes:

  • Add target-specific git2 dependency with vendored-libgit2 feature for
    musl targets in packages/cli/Cargo.toml
  • Re-enable x86_64-unknown-linux-musl and aarch64-unknown-linux-musl
    build targets in publish workflow

The vendored-libgit2 feature builds libgit2 from source and statically
links it, avoiding musl-specific system library linking issues. This
only affects musl builds - other platforms continue using system
libraries for faster builds.

@xsoheilalizadeh xsoheilalizadeh changed the title enable musl target builds with vendored libgit2 Enable musl target builds with vendored libgit2 Nov 18, 2025
@xsoheilalizadeh xsoheilalizadeh marked this pull request as ready for review November 18, 2025 23:41
@xsoheilalizadeh xsoheilalizadeh requested a review from a team as a code owner November 18, 2025 23:41
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.

CLI: Statically linked musl binaries for x86_64 and aarch64

1 participant