Skip to content

feat: add libgit2 and libssh2 static libs, headers, and build support#100

Merged
miki725 merged 2 commits into
devfrom
libgit
Jun 30, 2026
Merged

feat: add libgit2 and libssh2 static libs, headers, and build support#100
miki725 merged 2 commits into
devfrom
libgit

Conversation

@miki725

@miki725 miki725 commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds ensure_libssh2 and ensure_libgit2 to bin/buildlibs.sh; libgit2 is built with USE_HTTPS=OpenSSL and USE_SSH=libssh2 for full HTTPS and SSH remote support in musl/Alpine builds
  • Bundles pre-built static libs (libgit2.a, libssh2.a) for linux-amd64, linux-arm64, and macosx-arm64
  • Bundles libgit2 and libssh2 public C headers under nimutils/c/ for use by downstream consumers (chalk)

Test plan

# Build libgit2 and libssh2 from source inside Alpine
bash bin/buildlibs.sh

# Verify static libs exist for each platform
ls -lh files/deps/lib/linux-amd64/libgit2.a files/deps/lib/linux-amd64/libssh2.a
ls -lh files/deps/lib/linux-arm64/libgit2.a files/deps/lib/linux-arm64/libssh2.a
ls -lh files/deps/lib/macosx-arm64/libgit2.a files/deps/lib/macosx-arm64/libssh2.a

🤖 Generated with Claude Code

miki725 and others added 2 commits June 30, 2026 09:43
- Add ensure_libssh2 and ensure_libgit2 to buildlibs.sh; libgit2 is built
  with USE_HTTPS=OpenSSL and USE_SSH=libssh2 for full HTTPS and SSH remote
  support in musl/Alpine builds
- Bundle pre-built libgit2.a and libssh2.a for linux-amd64 and linux-arm64
- Bundle libgit2 and libssh2 public C headers under nimutils/c/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@miki725 miki725 requested a review from viega as a code owner June 30, 2026 13:58
@miki725 miki725 merged commit 418c3af into dev Jun 30, 2026
2 checks passed
@miki725 miki725 deleted the libgit branch June 30, 2026 14:00
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