Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save benjaminfauchald/39979fd76341e077eb55391e9e424c7d to your computer and use it in GitHub Desktop.
Save benjaminfauchald/39979fd76341e077eb55391e9e424c7d to your computer and use it in GitHub Desktop.
Sollution for Gem that results in a bundler failure due to version mismatch ("Bundler could not find compatible versions for...")
Hi fellow backenders
If you run into an issue with adding a gem that results in a bundler failure due to version mismatch ("Bundler could not find compatible versions for...")
It may well be that you will succeed by using either:
the version branch, or
the default (master|main) branch
in your Gemfile, e.g.
gem 'solidus_importer', github: 'solidusio-contrib/solidus_importer', branch: 'master'
Also worth looking at the gem repo's gemspec file, as that's where the gem dependencies are specified, e.g.:
https://github.com/solidusio-contrib/solidus_importer/blob/cc46fecf0524f02e18313b3ae0c532fc02301bdf/solidus_importer.gemspec#L32
solidus_importer.gemspec
spec.add_dependency 'solidus_core', ['>= 2.0.0', '< 4']
<https://github.com/solidusio-contrib/solidus_importer|solidusio-contrib/solidus_importer>solidusio-contrib/solidus_importer | Added by GitHub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment