Skip to content

Platform spec' in gem names #3057

Discussion options

You must be logged in to vote

Hi @wbreeze, thanks for the kind words and for asking this question.

Nokogiri ships precompiled native gems, and that's why the platform name is showing up in your lock file. This isn't commonly done -- most C extensions are compiled from source during installation.

The first and most important piece of advice I have is: make sure you are on the latest version of bundler on all your platforms. The behavior around resolving platform-specific versions of gems has improved a lot over the last two years. Being on the latest version means that some of the bugs that have been fixed will no longer be present for you.

The other thing you should do is to bundle lock --add-platform <platform-name>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by flavorjones
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants