Repository navigation
Improve error message when BUNDLED WITH version does not exist - #5205
Merged
deivid-rodriguez merged 4 commits intoDec 26, 2021
Merged
Conversation
BUNDLED WITH version does not exist
deivid-rodriguez
force-pushed
the
use_bundler_installer_to_install_the_bundler_gem
branch
4 times, most recently
from
December 24, 2021 00:47
238ee31 to
8370d9d
Compare
deivid-rodriguez
force-pushed
the
use_bundler_installer_to_install_the_bundler_gem
branch
from
December 26, 2021 13:40
8370d9d to
6c6e3c4
Compare
4 tasks done
This is how bundler installs gem, so we should use the same way for the bundler gem itself. In particular, Bundler does not use `Gem::Installer` but a subclass of it that does not call `Gem::Specification.reset` after install, and that also does some checksum verifications. This also allows us to: * Properly verify that the `BUNDLED WITH` version actually exist. * Not depend on what's on `Gem.sources`.
deivid-rodriguez
force-pushed
the
use_bundler_installer_to_install_the_bundler_gem
branch
from
December 26, 2021 20:19
6c6e3c4 to
0819497
Compare
Contributor
Author
|
This improves the error message when locked version does not exist, but also makes the bundler gem installation consistent with how all other gems are installed by |
deivid-rodriguez
enabled auto-merge
December 26, 2021 21:29
simi
approved these changes
Dec 26, 2021
deivid-rodriguez
disabled auto-merge
December 26, 2021 22:48
deivid-rodriguez
deleted the
use_bundler_installer_to_install_the_bundler_gem
branch
December 26, 2021 22:49
deivid-rodriguez
added a commit
that referenced
this pull request
Dec 29, 2021
…ll_the_bundler_gem Improve error message when `BUNDLED WITH` version does not exist (cherry picked from commit bf70808)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was the end-user or developer problem that led to this PR?
We're installing gems using rubygems installer, which makes installation dependent on what's on
Gem.sourcesand does not easily allow us to show a nice error message when theBUNDLED WITHversion does not exist.What is your fix for the problem, implemented in this PR?
Install the bundler gem in the same way other gems are installed from bundler. This allows to easily fix the above issues, but also to use bundler custom gem installer (inherits from
Gem::Installer) which for example, does not callGem::Specification.resetafter installing gems or does checksum verification. In general, this way feels better.Make sure the following tasks are checked