Skip to content
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

Don't install platform specific gems on truffleruby #4333

Merged
merged 3 commits into from Feb 4, 2021

Conversation

deivid-rodriguez
Copy link
Member

What was the end-user or developer problem that led to this PR?

Sometimes platform specific specs are installed on truffleruby.

What is your fix for the problem, implemented in this PR?

Handle the case where an implementation registers itself as a "pure ruby platform" by setting Gem.platforms == [Gem::Platform::RUBY].

Fixes #4330.

@bundlerbot bundlerbot added Bundler CI CI related issues labels Feb 1, 2021
@deivid-rodriguez deivid-rodriguez force-pushed the truffleruby_platform_specific_deps branch 2 times, most recently from 8d8290f to f49fca1 Compare February 1, 2021 13:26
@deivid-rodriguez
Copy link
Member Author

deivid-rodriguez commented Feb 3, 2021

It should be ready now! I added a bare truffleruby bundler CI to make sure the issue is caught: https://github.com/rubygems/rubygems/pull/4333/checks?check_run_id=1822918747.

Copy link
Contributor

@eregon eregon left a comment

Choose a reason for hiding this comment

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

This looks great, thank you for the fix!

@eregon
Copy link
Contributor

eregon commented Feb 3, 2021

It'd be great to merge this and have a release, we're seeing more reports of this issue (e.g., oracle/truffleruby#2246)

@deivid-rodriguez
Copy link
Member Author

I'll release this at the beginning of next week.

@simi simi merged commit d7941db into master Feb 4, 2021
@simi simi deleted the truffleruby_platform_specific_deps branch February 4, 2021 12:22
deivid-rodriguez pushed a commit that referenced this pull request Feb 8, 2021
…deps

Don't install platform specific gems on truffleruby

(cherry picked from commit d7941db)
@eregon
Copy link
Contributor

eregon commented Feb 9, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bundler 2.2.7 installs binary gems on TruffleRuby, even though Gem.platforms = [Gem::Platform::RUBY]
4 participants