Skip to content

Conversation

@wcharysz
Copy link

Motivation:

Swift Package Manager currently lacks native support for Git Large File Storage (LFS), which limits its usability in projects that rely on large binary assets or versioned media files. This change aims to improve compatibility with repositories using Git LFS, enabling smoother dependency resolution and package integration.

Modifications:

Integrated Git LFS handling into the package resolution workflow.
Ensured LFS-tracked files are properly fetched and available during package checkout.
Added tests to validate LFS file presence and integrity.

Result:

SwiftPM can now correctly handle packages that use Git LFS, improving support for a broader range of repositories and workflows involving large assets.

@dschaefer2
Copy link
Member

@plemarquand I think you were looking in this area a while ago?

@dschaefer2
Copy link
Member

@swift-ci please test

@wcharysz
Copy link
Author

wcharysz commented Nov 5, 2025

When I try to launch the tests I get an error while building:

swift test [1/1] Planning build Building for debugging... <unknown>:0: error: missing required module 'SWBCLibc'

That's why the CI fails. How can I fix it to proceed with the pull request?

@plemarquand
Copy link
Contributor

I did take a shot at this a long time ago, draft is still up here for reference: #8235

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