Last active
May 11, 2021 11:59
-
-
Save m4p/083e17d0d7ce42dc5c69d9b0d92799f5 to your computer and use it in GitHub Desktop.
Backup your Swift Package Manager dependencies locally. Just in case.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir backup | |
cd backup | |
cat ../YourProject.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved | jq '.object.pins[] | .repositoryURL' | xargs -n1 git clone --mirror |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment