Reputation: 1078
Recently I got the alert from Github
I wanted to update actionview
as it was prescribed, but after running bundle update actionview
I got:
Bundler could not find compatible versions for gem "actionview":
In Gemfile:
actionview (>= 6.0.2.2)
rails (>= 6.0.2.1) was resolved to 6.0.2.1, which depends on
actionview (= 6.0.2.1)
The problem is Rails doesn't (or don't (?)) use Gemfile to manage gems so I can't fix that lock. Please, help!
Upvotes: 1
Views: 722
Reputation: 46
If your Gemfile also includes rails
then actionview
will be constrained by that, as indicated by the output of bundler (actionview (= 6.0.2.1)
). This indicates that your current rails version will only accept version 6.0.2.1
of actionview
.
actionview
is one of the dependencies of rails
. See https://github.com/rails/rails/blob/v6.0.2.2/rails.gemspec#L33
There you can also see that the versions are raised in lockstep. So in order to raise the version of actionview
with rails in your Gemfile you can either run bundle update rails
or look into the option of only including actionview
in your Gemfile, but not rails
. For the latter case you should then be able to re-run bundle update actionview
to update actionview
.
Upvotes: 3