Skip to content

Fix TruffleRuby no longer able to install lockfiles generated with other implementations#5711

Merged
deivid-rodriguez merged 2 commits intomasterfrom
fix-another-truffleruby-regression
Jul 13, 2022
Merged

Fix TruffleRuby no longer able to install lockfiles generated with other implementations#5711
deivid-rodriguez merged 2 commits intomasterfrom
fix-another-truffleruby-regression

Conversation

@deivid-rodriguez
Copy link
Copy Markdown
Contributor

@deivid-rodriguez deivid-rodriguez commented Jul 12, 2022

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

Since #5495, TruffleRuby is no longer able to install lockfiles generated with other implementations. Specifically when they include platform specific gems, usually not compatible with TruffleRuby.

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

I was no able to find a good solution that allows us to keep all the recent changes in the approach to supporting TruffleRuby by using :force_ruby_platform. And I see no easy way of doing so. I think the only way to make this work cleanly would be to get TruffleRuby to report its own platform, so that we can act accordingly, and can trigger a fresh re-resolve if the lockfile was never bundled before with TruffleRuby before.

Anyways, I'm not able to implement or make a proposal for the above right now, so for the moment I reverted our new approach to supporting TruffleRuby and restored what we were doing before.

Make sure the following tasks are checked

If the lockfile had been generated on another platform, we recently lost
the ability to install the proper gems on TruffleRuby.

The way I can think of to keep our current cleaner approach of using
`force_ruby_platform` would be that TruffleRuby was reported as a
special platform. But that would require further discussion, so for now
I'm reverting the changes that caused this.

In particular, reverts "Make sure truffleruby properly deals with old
lockfiles" (the "lib" part of commit
f971005) and "Better solution to
support truffleruby platform handling" (the "lib" part of commit
6085de0).
@deivid-rodriguez deivid-rodriguez changed the title Fix another truffleruby regression Fix TruffleRuby no longer able to install lockfiles generated with other implementations Jul 13, 2022
@deivid-rodriguez deivid-rodriguez marked this pull request as ready for review July 13, 2022 08:43
@deivid-rodriguez deivid-rodriguez merged commit 3ac96cf into master Jul 13, 2022
@deivid-rodriguez deivid-rodriguez deleted the fix-another-truffleruby-regression branch July 13, 2022 11:10
deivid-rodriguez added a commit that referenced this pull request Jul 13, 2022
…sion

Fix TruffleRuby no longer able to install lockfiles generated with other implementations

(cherry picked from commit 3ac96cf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants