refinerycms-blog icon indicating copy to clipboard operation
refinerycms-blog copied to clipboard

Bundle take too loog time to work.

Open lanzhiheng opened this issue 7 years ago • 4 comments

Fetching https://github.com/refinery/refinerycms
The dependency activerecord-jdbcsqlite3-adapter (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
The dependency activerecord-jdbcmysql-adapter (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
The dependency jdbc-mysql (= 5.1.13) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
The dependency activerecord-jdbcpostgresql-adapter (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies........................................................................................................^C

Hi, I want to send the PR for this project. So the first thing I want to do is running the test. But I can not bundle install successfully. Anyone encounter this issue?

lanzhiheng avatar Nov 15 '18 01:11 lanzhiheng

Hi @lanzhiheng, it should bundle as fast as your internet bandwith.

Could you give more informations to track the issue?

Thanks!

bricesanchez avatar Nov 15 '18 15:11 bricesanchez

@bricesanchez I am sorry that I don't have any more information. Because the process block in this message

Resolving dependencies........................................................

But the bundle process work fine in my others ruby project. Do you have the same issue when you run bundle install in this project? I clone the refinerycms repo to my computer just now, and the bundle process pass quickly image

but the bundle not work in this project.

lanzhiheng avatar Nov 15 '18 15:11 lanzhiheng

@bricesanchez

It is amazing that after I remove gemspec in Gemfile I can pass the bundle very quickly. But I can not pass it with gemspec statement.

In addition, I create the PR https://github.com/refinery/refinerycms-blog/pull/496 . After I change the verson of globalize to '~> 5.2.0'

 s.add_dependency    'globalize',             '~> 5.2.0'

inrefinerycms-blog.gemspec I can pass the bundle do you think it is a good idea?

The version in 5.1.0 may be a problem If I run it in ruby2.5.1 as well as rails 5.2.1

Bundler could not find compatible versions for gem "activerecord":
  In snapshot (Gemfile.lock):
    activerecord (= 5.2.1)

  In Gemfile:
    refinerycms was resolved to 4.0.2, which depends on
refinerycms-pages (= 4.0.2) was resolved to 4.0.2, which depends
on
awesome_nested_set (>= 3.1.0, ~> 3.1) was resolved to 3.1.4,
which depends on
          activerecord (< 5.3, >= 4.0.0)

    refinerycms was resolved to 4.0.2, which depends on
refinerycms-pages (= 4.0.2) was resolved to 4.0.2, which depends
on
friendly_id (< 5.3, >= 5.1.0) was resolved to 5.2.4, which
depends on
          activerecord (>= 4.0.0)

    refinerycms-blog was resolved to 4.0.0, which depends on
      globalize (~> 5.1.0) was resolved to 5.1.0, which depends on
        activerecord (< 5.2, >= 4.2)

    refinerycms was resolved to 4.0.2, which depends on
refinerycms-core (= 4.0.2) was resolved to 4.0.2, which depends
on
        activerecord (< 6, >= 5.2.0)

Running `bundle update` will rebuild your snapshot from scratch, using
only
the gems in your Gemfile, which may resolve the conflict.

lanzhiheng avatar Nov 15 '18 15:11 lanzhiheng

I have resolved this issue, I closed it.

lanzhiheng avatar Dec 27 '18 09:12 lanzhiheng