-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
plugin directive doesn't honor version constraint #7415
Comments
This is tricky to debug since a bundle update will blow away any modifications you make in Also, using Once you follow through @Fryguy comments and agree there probably is an issue here, I think checking that the |
The |
Describe the problem as clearly as you can
The plugin directive when given a version installs that version, but doesn't use it if an upgrade has occurred. Instead it seems to use what's in the index, but the index is not updated to the requested version.
Did you try upgrading rubygems & bundler?
Yes, this occurs on latest bundler and I also see it happening as far back as 2.4.17 (and probably further, but I didn't continue back)
Post steps to reproduce the problem
Start with this basic Gemfile:
Then
bundle install
. This works as expected.Next update the version in the Gemfile:
Then
bundle install
. You will notice that 0.3.0 gets installed correctly, however the index does not reflect that update:Next, to show that the version being used is incorrect, we can modify the source to display the version on use, so run the following (apologies for this hacky way, but I was having a really hard time finding a plugin that was versioned and also showed the version - we can probably invent one for specs)
Now run
bundler commentate --help
. You will see that it is using version 0.2.0 even though we've requested 0.3.0.The seemingly only workaround at this point is to
rm -rf .bundle
and then redobundle install
.Which command did you run?
What were you expecting to happen?
What actually happened?
See above.
If not included with the output of your command, run
bundle env
and paste the output belowEnvironment
Bundler Build Metadata
Gemfile
Gemfile
Gemfile.lock
The text was updated successfully, but these errors were encountered: