Update thin to 1.8.0 to fix bundle install error with xcode 12 on MacOS #40701
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
When I attempt to
bundle install
a fresh set of Rails dependencies,thin
(a dependency ofblade
) fails to build with native extensions. It looks like I'm hitting the issue described in macournoyer/thin#372. The root cause seems to be a change in how Clang 12 treats a specific compiler warning. Updatingthin
to 1.8.0 fixes the issue, thanks to this change. The 1.7.2 to 1.8.0 diff is non-trivial, but the vast majority of the changes are to specs.One thing I am a bit confused about: the
blade
dependency is listed under ActionCable in the Gemfile, but from grepping around it's only used by ActionView. Am I right that it's only used in the ActionView tests? I'm not super familiar with the Rails codebase. I did see theassets:compile
ActionView rake task, but sinceblade
isn't included with the packaged gem, it seems like any non-development code that tried to use it would fail.Other Information
Worth noting if anybody else runs into this issue that there's a temporary fix described in the PR to thin which worked for me. Would nice to get a vanilla
bundle install
working, though!