Skip to content

Fix bundle install on macOS by adding darwin platforms to Gemfile.next.lock#356

Merged
JuanVqz merged 1 commit intomainfrom
fix/bundle-install
Apr 29, 2026
Merged

Fix bundle install on macOS by adding darwin platforms to Gemfile.next.lock#356
JuanVqz merged 1 commit intomainfrom
fix/bundle-install

Conversation

@JuanVqz
Copy link
Copy Markdown
Member

@JuanVqz JuanVqz commented Apr 29, 2026

Summary

  • BUNDLE_GEMFILE=Gemfile.next bundle install was failing on macOS (arm64) because Gemfile.next.lock only listed the ruby and x86_64-linux platforms. Bundler fell back to building nokogiri from source, which fails locally with fatal error: 'nokogiri_gumbo.h' file not found.
  • Added the darwin platforms (arm64-darwin-23/24, x86_64-darwin-21/22) to Gemfile.next.lock so the precompiled native gems are used, matching the platform set already present in Gemfile.lock.
  • Also picked up arm64-darwin-24 in Gemfile.lock (previously uncommitted local diff).

Test plan

  • bundle exec rubocop — 120 files, 0 offenses.
  • BUNDLE_GEMFILE=Gemfile.next bundle exec rubocop — 120 files, 0 offenses.
  • bundle install (current Rails) — succeeds.
  • BUNDLE_GEMFILE=Gemfile.next bundle install — succeeds (176 gems).
  • bundle exec rspec against current Rails — 204 examples, 0 failures.
  • BUNDLE_GEMFILE=Gemfile.next bundle exec rspec against next Rails — 204 examples, 0 failures.

Bundle install on macOS (arm64) failed because Gemfile.next.lock only
listed `ruby` and `x86_64-linux` platforms, forcing a source build of
nokogiri which fails locally (missing nokogiri_gumbo.h).

Add arm64-darwin-23/24 and x86_64-darwin-21/22 to Gemfile.next.lock
(matching Gemfile.lock) and bring Gemfile.lock current with arm64-darwin-24.
@JuanVqz JuanVqz requested a review from etagwerker April 29, 2026 05:21
Copy link
Copy Markdown
Contributor

@arielj arielj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JuanVqz JuanVqz merged commit 25531b7 into main Apr 29, 2026
2 checks passed
@JuanVqz JuanVqz deleted the fix/bundle-install branch April 29, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants