-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
soto repository history is very large - 381 MiB #752
Comments
I was thinking about this, Having a link between the service files and the model files that generated them is useful. I might have a look into moving the models into a separate repo but using a submodule so I can access them from the soto repo if needed. I don't think submodules are pulled by SwiftPM |
I believe SPM does update submodules each time - https://github.com/swiftlang/swift-package-manager/blob/swift-6.0.3-RELEASE/Sources/SourceControl/GitRepository.swift#L649-L685 This repo has a submodule - https://github.com/swift-server/swift-kafka-client
SPM after each update will then run the updateSubmoduleAndCleanNotOnQueue() which will do the submodule fetch:
The json files could be stored in Git LFS and hosted by Github without any issues? I tried:
This is not allowed:
Switching to a fully personal account but reached a limit:
https://github.com/settings/billing/summary for me shows 1GB free for LFS. |
The problem with putting the models in a separate repo, lfs or not, is I lose the connection between the models and the source code. I need to have a think to see how I can get around this. In the meantime have you considered using the code generator plugin? If you aren't using any of the extension code eg s3 multipart upload helpers then this is a viable alternative. https://github.com/soto-project/soto-codegenerator |
Describe the bug
Swift Package Manager dependency fetching is significantly slowed down by the large size of the Soto repository (~381MB) due to AWS service model files. This impacts development workflow as Xcode DerivedData or SPM caches frequently need to be cleared due to various bugs, and SPM doesn't support shallow clones (swift-package-manager#6062).
The repository size is 381.59 MiB and grows by 6MB+ each time AWS service models are synced from aws-sdk-go.
To Reproduce
Top 20 largest files are:
@adam-fowler, would you consider moving these large model files to Git LFS to reduce repository size and improve clone times?
https://docs.github.com/en/repositories/working-with-files/managing-large-files/configuring-git-large-file-storage
https://docs.github.com/en/repositories/working-with-files/managing-large-files/about-git-large-file-storage
The text was updated successfully, but these errors were encountered: