Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle take too loog time to work. #495

Open
lanzhiheng opened this issue Nov 15, 2018 · 4 comments
Open

Bundle take too loog time to work. #495

lanzhiheng opened this issue Nov 15, 2018 · 4 comments

Comments

@lanzhiheng
Copy link

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?

@bricesanchez
Copy link
Member

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

Could you give more informations to track the issue?

Thanks!

@lanzhiheng
Copy link
Author

lanzhiheng commented Nov 15, 2018

@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
Copy link
Author

lanzhiheng commented Nov 15, 2018

@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 #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
Copy link
Author

I have resolved this issue, I closed it.

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

No branches or pull requests

2 participants