krzyzanowskim / OpenSSL

OpenSSL package for SwiftPM, CocoaPod, and Carthage, multiplatform
https://swift.best
Other
928 stars 340 forks source link

Big git .pack file #189

Closed vlasty-proglove closed 7 months ago

vlasty-proglove commented 11 months ago

Hi and thank you for your contribution.

At the moment, Xcode SPM does not filter the package but downloads the whole repository. The file in your .git/objects/pack folder with extension .pack is almost 1gb.

Can OpenSSL.xcframework be hosted on a different repo that will be used to just download the Framework?

Thank you.

krzyzanowskim commented 11 months ago

fair. I’ll think about it over the holidays

vlasty-proglove commented 8 months ago

Hi, any updates on this? Thank you.

krzyzanowskim commented 8 months ago

There are many problems. With SwiftPM's current state, it has to be a separate repository, or any attempt to rewrite history to make it lighter will break current users. The actual improvement would be if SwiftPM used shallow clone. That's not a priority last time I checked

richardtop commented 7 months ago

Already reported as #107 and #156

I'm totally in for separating the build results repository and the scripts (#156). Even at the cost of breaking existing uses, it's a one-time change that will likely be solved with changing the URL and the version of the dependency for the end-user.

Given how often an SPM cache clean is needed when working with the large projects, this would be a welcome change.

Shallow clone would have solved it though: https://stackoverflow.com/questions/69944121/swift-package-manager-shallow-clone

krzyzanowskim commented 7 months ago

Now you can update your setup to use https://github.com/krzyzanowskim/OpenSSL-Package that is a drop-in replacement URL for the same package