-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Distribute a binary built with swiftpm for 0 dependencies #1395
Comments
|
Ah yes, sorry I missed that library in the output. |
This actually seems to "just work" with the current master builds of swiftpm. The only change that has to be made is upgrading sourcekitten to master for this fix |
Since #1951 has been merged to master, now $ brew install swiftlint --HEAD
==> Cloning https://github.com/realm/SwiftLint.git
Cloning into '/Users/norio/Library/Caches/Homebrew/swiftlint--git'...
remote: Counting objects: 364, done.
remote: Compressing objects: 100% (347/347), done.
remote: Total 364 (delta 63), reused 61 (delta 6), pack-reused 0
Receiving objects: 100% (364/364), 695.56 KiB | 953.00 KiB/s, done.
Resolving deltas: 100% (63/63), done.
==> Checking out branch master
==> make prefix_install PREFIX=/usr/local/Cellar/swiftlint/HEAD-9f3154e TEMPORARY_FOLDER=/private/tmp/swiftlint-20171121-97808-1j3adiq/SwiftLint.dst
🍺 /usr/local/Cellar/swiftlint/HEAD-9f3154e: 6 files, 15.4MB, built in 4 minutes 23 seconds
brew install swiftlint --HEAD 240.89s user 52.24s system 103% cpu 4:42.15 total
$ otool -L `which swiftlint`
/usr/local/bin/swiftlint:
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1445.12.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1443.14.0)
/System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics (compatibility version 64.0.0, current version 1125.3.4)
/usr/lib/libicucore.A.dylib (compatibility version 1.0.0, current version 59.1.0) |
I noticed that there is now a
portable_swiftlint.zip
with each new release. I'm wondering if, either along side or instead of this zip, it would make sense to distribute a binary built with swiftpm so that it could be entirely self contained. This would be nice for being able to easily use the single binary without having to worry at all about relative paths for the dependencies. Since swiftpm is already supported here, this would be pretty reasonable to do:This binary could easily be dropped in to a CI machine, or a local machine, without having to worry about any dependency conflicts, or installations with sudo.
Thoughts?
The text was updated successfully, but these errors were encountered: