-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Fix overly strict dependency requirement of the logger gem to allow plugin installation #13532
Fix overly strict dependency requirement of the logger gem to allow plugin installation #13532
Conversation
…lugin installation Vagrant version 2.4.2 introduced a patch(512bb74) that sets the logger gem dependency to "~>1.6.1", which is too strict and prevents many Vagrant plugins from being installed. This patch tones down the dependency specification to mitigate this problem. Fixes hashicorp#13527. Refer-to: Add logger and ostruct to the gemspec by hswong3i · Pull Request hashicorp#13499 · hashicorp/vagrant <hashicorp#13499>
I can verify that the patched version works at my end. |
Just curious: on my MacOS system, I do not see all the dependencies listed in this file installed locally (with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR! Just FYI that I did further relax this constraint.
@pranabdas The gems that are installed will not be listed with the |
git clean -xdf git submodule sync --recursive git submodule update --recursive --init git submodule foreach --recursive git clean -xdf gem build vagrant.gemspec -o ../vagrant-2.4.2.gem bundle config set --local path ./bundle bundle install --verbose --standalone bundle config set --local cache_all true bundle config set --local cache_all_platforms true bundle cache mv ../vagrant-2.4.2.gem ./vendor/cache/ rm -rf .bundle bundle vendor/bundle Gemfile.lock tar zcvf ../vagrant_2.4.2.orig.tar.gz --exclude=.git . debuild -uc -us cp vagrant.spec ../vagrant_2.4.2-1.spec cp vagrant.rpmlintrc /osc/home\:alvistack/hashicorp-vagrant-2.4.2/ cp ../vagrant*2.4.2*.{gz,xz,spec,dsc} /osc/home\:alvistack/hashicorp-vagrant-2.4.2/ rm -rf ../vagrant*2.4.2*.* See https://salsa.debian.org/ruby-team/vagrant/-/blob/master/debian/patches/0001-bin-vagrant-silence-warning-about-installer.patch See https://salsa.debian.org/ruby-team/vagrant/-/blob/master/debian/patches/0005-Relax-dependency-resolution.patch See https://build.opensuse.org/package/show/openSUSE:Factory/vagrant See hashicorp#13532 Signed-off-by: Wong Hoi Sing Edison <[email protected]>
Is there any way to install plugins with 2.4.2 installed? Or do I necessarily have to wait for the new version of vagrant to be released? |
There's an environment variable that can be set to workaround the problem, check the source issue for more information. |
Vagrant version 2.4.2 introduced a patch(512bb74) that sets the logger gem dependency to "~>1.6.1", which is too strict and prevents many Vagrant plugins from being installed.
This patch tones down the dependency specification to mitigate this problem.
Fixes #13527.
Refer-to: Add logger and ostruct to the gemspec by hswong3i · Pull Request #13499 · hashicorp/vagrant #13499
I'm not acquainted with Ruby, RubyGems, and the usage of the
logger
gem in Vagrant, please review.