Open Fryguy opened 4 years ago
I think this intentionally blows up when it does not know the gem. The gem is not available (yet) so it complains.
Do you want to be able to override gems that are not part of the gemfile at all and have them act like a gem
command? I do something like that in my own Gemfiles
Didn't we add ensure_gem
for this?
No, this is a different issue from ensure_gem.
Though that being said, maybe ensure_gem would work for this case? If so, we should document that.
If the issue is that the gem you're trying to override isn't in the main Gemfile but rather brought in by another gem, then I use ensure_gem
for this all the time...basically anytime I need to override a provider sdk gem.
Maybe that's an "undocumented" use case of ensure_gem
but it 100% works :smile:
Ok, interesting - yeah then we should at least document it in the README, and then we can close this, or change it to a feature request.
In ManageIQ, if I do
I get the following error
Even though it's a transient dependency, I'd expect it to work.