Skip to content

Instantly share code, notes, and snippets.

@lloeki
lloeki / Gemfile
Last active June 26, 2024 17:16
Bundler 1.17 / Rubygems 3.0 linux-musl resolution
# This fixes the platform value for rubygems 3.x, allowing bundler and gem install
# to properly resolve to: a) linux on linux, and b) to linux-musl on linux-musl
# with a fallback to linux if there's no linux-musl gem published.
#
# This works when there is no extension to build that would try to query the
# current Ruby platform through Rubygems (because building an extension spawns an
# independent Ruby interpreter)
#
# The second file in this gist is a patch to apply to Rubygems 3.0.3.1, e.g for
# official Docker Hub images: