Reactivate usused code for ruby version resolution #7559
Conversation
Thanks @larskanis! Do you have any particular preference? Intuitively to me, less code is better than more code, so I would go with #7558. @kou any opinion? |
I honesty don't really understand the impact of this code and I didn't find a difference in resolution between #7558 and #7559. But there's at least a user visible difference. In case of ruby version conflicts with #7522 this PR prints:
while #7558 doesn't print the current ruby version:
This difference is why I had to adjust the specs in this PR. |
OK. I'll check this with #7522. |
Mmm, I see. In that case, it sounds like this PR would be the way to go. At least I prefer the extra bit of clarification in the failure message. |
@larskanis Can you rebase this PR? |
The code was changed in commit 38b0e7e so that RubyVersion.system was no longer respected. This is reactivated now and specs are adjusted accordingly.
dd0f7c0
to
394cd14
Compare
@deivid-rodriguez I rebased this PR and #7558 to master. |
I'm going to go with this PR out of the two, let me know if any of you have any concerns. @bundlerbot merge |
7559: Reactivate usused code for ruby version resolution r=deivid-rodriguez a=larskanis The code was changed in commit 38b0e7e so that RubyVersion.system was no longer respected. This is reactivated now and specs are adjusted accordingly. ### What was the end-user problem that led to this PR? Not known. ### What was your diagnosis of the problem? I read the bundler source code and noticed this. ### What is your fix for the problem, implemented in this PR? My fix re-adds the ruby version as it was before commit 38b0e7e , since it seems to be a mistake. ### Why did you choose this fix out of the possible options? As a alternative I added #7558 that removes the code in question. Co-authored-by: Lars Kanis <kanis@comcard.de>
Build succeeded
|
The code was changed in commit 38b0e7e so that RubyVersion.system was no longer respected. This is reactivated now and specs are adjusted accordingly.
What was the end-user problem that led to this PR?
Not known.
What was your diagnosis of the problem?
I read the bundler source code and noticed this.
What is your fix for the problem, implemented in this PR?
My fix re-adds the ruby version as it was before commit 38b0e7e , since it seems to be a mistake.
Why did you choose this fix out of the possible options?
As a alternative I added #7558 that removes the code in question.