Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Can't bundle install #23

Open
mhicauber opened this issue Mar 19, 2018 · 5 comments
Open

Can't bundle install #23

mhicauber opened this issue Mar 19, 2018 · 5 comments

Comments

@mhicauber
Copy link

mhicauber commented Mar 19, 2018

If I remove the Gemfile.lock file, can't do a bundle install (dependencies versions issues, see below).

Is it expected ? Shouldn't the bundle install command be ok any time ?


❯ bundle install 
Fetching https://github.com/Treize37/language_engine
Fetching https://github.com/afimb/chouette2-i18n.git
Fetching https://github.com/afimb/chouette-projects-i18n.git
Fetching gem metadata from https://rails-assets.org/....
Fetching version metadata from https://rails-assets.org/..
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies................................................................................................
Bundler could not find compatible versions for gem "activerecord":
  In Gemfile:
    activerecord-postgis-adapter (~> 3.1.4) was resolved to 3.1.5, which depends on
      activerecord (~> 4.2)

    activerecord-postgis-adapter (~> 3.1.4) was resolved to 3.1.5, which depends on
      activerecord (~> 4.2)

    acts-as-taggable-on (>= 3) was resolved to 4.0.0, which depends on
      activerecord (>= 4.0)

    acts_as_list (~> 0.6.0) was resolved to 0.6.0, which depends on
      activerecord (>= 3.0)

    acts_as_list (~> 0.6.0) was resolved to 0.6.0, which depends on
      activerecord (>= 3.0)

    acts_as_list (~> 0.6.0) was resolved to 0.6.0, which depends on
      activerecord (>= 3.0)

    acts_as_tree (~> 2.1.0) was resolved to 2.1.0, which depends on
      activerecord (>= 3.0.0)

    apartment (~> 1.0.0) was resolved to 1.0.2, which depends on
      activerecord (< 5.0, >= 3.1.2)

    deep_cloneable (~> 2.0.0) was resolved to 2.0.2, which depends on
      activerecord (< 5.0.0, >= 3.1.0)

    delayed_job_active_record was resolved to 4.1.2, which depends on
      activerecord (< 5.2, >= 3.0)

    rails (~> 4.2.7) was resolved to 4.2.7, which depends on
      activerecord (= 4.2.7)

    rails-erd was resolved to 1.5.2, which depends on
      activerecord (>= 3.2)

    squeel was resolved to 0.5.0, which depends on
      activerecord (~> 3.1.0.alpha)
Bundler could not find compatible versions for gem "devise":
  In Gemfile:
    devise (~> 3.5.10)

    devise-async was resolved to 1.0.0, which depends on
      devise (>= 4.0)

    devise_invitable was resolved to 1.6.1, which depends on
      devise (>= 3.2.0)
Bundler could not find compatible versions for gem "polyamorous":
  In Gemfile:
    ransack was resolved to 1.8.8, which depends on
      polyamorous (~> 1.3.2)

    squeel was resolved to 1.1.0, which depends on
      polyamorous (~> 0.6.0)
Bundler could not find compatible versions for gem "rspec-core":
  In Gemfile:
    guard-rspec was resolved to 4.7.3, which depends on
      rspec (< 4.0, >= 2.99.0) was resolved to 3.5.0, which depends on
        rspec-core (~> 3.5.0)

    rspec-rails (~> 3.4.2) was resolved to 3.4.2, which depends on
      rspec-core (~> 3.4.0)

@metienne
Copy link

Gemfile.lock freezes versions at commit time.

if you try to rebuild without it, maybe some bundles changes in version and ask for incompatible versions of other bundles ; Gemfile should be analysed to adapt all bundles with new version with possible side effects.
Next Chouette release will be upgraded on newer bundle versions

@mhicauber
Copy link
Author

Thanks. Can't take this issue, limited (if not no) knowledge in Rails.
Should we keep the issue open until next version then ?

@metienne
Copy link

no problem, this issue will stay open

@ilarimikkonen
Copy link

Hi,

is there a new release coming anytime soon? I think the error I got is related.
versions:
Bundler version 1.16.6
=* ruby-2.1.10

ERROR:

Gem::RuntimeRequirementNotMetError: ruby_dep requires Ruby version ~> 2.2, >= 2.2.5. The current ruby version is 2.1.0.
An error occurred while installing ruby_dep (1.5.0), and Bundler cannot continue.
Make sure that gem install ruby_dep -v '1.5.0' succeeds before bundling.

Thanks!

@ilarimikkonen
Copy link

seems like using version 2.2.10 of ruby worked for me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants