Skip to content

Git Submodule Support#284

Merged
yonaskolb merged 2 commits into
yonaskolb:masterfrom
Brett-Best:feature/git-submodules-support
Dec 11, 2025
Merged

Git Submodule Support#284
yonaskolb merged 2 commits into
yonaskolb:masterfrom
Brett-Best:feature/git-submodules-support

Conversation

@Brett-Best

@Brett-Best Brett-Best commented Nov 12, 2025

Copy link
Copy Markdown
Contributor

Adds git submodule support, this allows Mint to install https://github.com/apple/swift-protobuf.

I considered adding this to the tests but it would increase how long they take to run substantially.

I've left Allow edits by maintainers on so you can tweak this if needed @yonaskolb 😄

@aduuub

aduuub commented Nov 20, 2025

Copy link
Copy Markdown

This would be great for our use case too!

Copilot AI 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.

Pull request overview

This PR adds git submodule support to Mint, enabling the installation of packages that depend on submodules, such as apple/swift-protobuf. The change adds the --recurse-submodules flag to git clone and checkout operations to ensure submodules are properly initialized during package installation.

  • Adds --recurse-submodules flag to git clone and checkout commands
  • Supports both SHA-based and shallow clone scenarios

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Sources/MintKit/Mint.swift Outdated
Comment thread Sources/MintKit/Mint.swift Outdated
@yonaskolb

Copy link
Copy Markdown
Owner

Thanks @Brett-Best!

@yonaskolb yonaskolb merged commit 2d61c48 into yonaskolb:master Dec 11, 2025
2 checks passed
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.

4 participants