OpenSSL icon indicating copy to clipboard operation
OpenSSL copied to clipboard

Big git .pack file

Open vlasty-proglove opened this issue 1 year ago • 1 comments

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.

vlasty-proglove avatar Dec 20 '23 15:12 vlasty-proglove

fair. I’ll think about it over the holidays

krzyzanowskim avatar Dec 20 '23 18:12 krzyzanowskim

Hi, any updates on this? Thank you.

vlasty-proglove avatar Apr 01 '24 14:04 vlasty-proglove

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

krzyzanowskim avatar Apr 02 '24 09:04 krzyzanowskim

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

richardtop avatar Apr 16 '24 22:04 richardtop

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

krzyzanowskim avatar May 03 '24 09:05 krzyzanowskim