-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
swiftlint 0.42.0 #66918
swiftlint 0.42.0 #66918
Conversation
Is it normal for the CI checks to still be pending 6 hours later? |
it is not normal but we only have limited resources for all CI jobs. |
Apparently, Homebrew hijacks the
This error can be avoided by making the following changes and overriding the variables that Homebrew's clang receives: --- a/Formula/swiftlint.rb
+++ b/Formula/swiftlint.rb
@@ -18,7 +18,7 @@ class Swiftlint < Formula
depends_on xcode: "8.0"
def install
- system "make", "prefix_install", "PREFIX=#{prefix}", "TEMPORARY_FOLDER=#{buildpath}/SwiftLint.dst"
+ system "env", "HOMEBREW_OPTFLAGS=", "make", "prefix_install", "PREFIX=#{prefix}", "TEMPORARY_FOLDER=#{buildpath}/SwiftLint.dst"
end
test do |
That really shouldn't happen. Why doesn't the compiler accept that argument? |
|
We don't want to ship universal binaries so that should be stripped out either way. |
Could you please elaborate why you don't want to ship universal binaries? It seems that with many individuals running Homebrew on M1 Macs via Rosetta 2 (either with arch -x86_64 or by forcing Terminal to run in x86 mode) it would be preferable to install the universal binary in those cases so that they always run the platform native version of SwiftLint. In our case, the universal binary isn't particularly large so the benefits of a universal binary outweigh the costs. |
Because we build bottles for a specific architecture. It conflicts with the brew settings if both Big Sur bottles would install a fat binary. On top of that, we had a lot of issues with the last time universal binaries were a thing and we did support them. We'd like to avoid that this time around and spend our time building specifically for the configurations that users are requesting. |
Got it. I made some edits to the formula installation, let's see if that works. |
For posterity, I had to pass
I believe this happens because the Swift Package Manager doesn't normally build in a macOS sandboxed environment. Specifying |
Thanks @jpsim ! Without contributions like yours it'd be impossible to keep homebrew going with the high standards that users have come to expect from the project. You can feel good knowing that you've made the world a tiny bit better for homebrew users around the world! 👍 🎉 |
🤖 A scheduled task has triggered a merge. |
Created with
brew bump-formula-pr
.