简体   繁体   中英

Upgrading to Spree 2.0.0 Bundler dependency issues With Extensions that depends upon spree_core 1.3.x

I'm trying to upgrade my spree store to spree new release 2.0.0 my gem file is as follow it gives me following error when i do "bundle install" Any clue?

Sample Error look like:
Bundler could not find compatible versions for gem "spree_core":
In Gemfile:
spree_social (>= 0) ruby depends on
  spree_core (~> 1.3.0) ruby

spree_auth_devise (>= 0) ruby depends on
  spree_core (2.0.0)

GemFile:
------------
# To use debugger
# gem 'debugger'
gem 'spree', github: 'spree/spree', branch: '2-0-stable'
gem 'spree_gateway', :github => 'spree/spree_gateway', :branch => '1-3-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-0-stable'
gem "spree_social", :git => "git://github.com/spree/spree_social.git", :branch => '1-3-        stable'
gem 'spree_active_sale' , :git => 'git://github.com/suryart/spree_active_sale.git',   :branch => '1-3-stable'

Further more, please tell me should i wait for the newer versions of these extensions(spree-social etc.. mentioned above) to pull them from git hub that will depends upon "spree_core 2.0.0" ? or Alternatively should i make my on custom extension to achieve the functionalists provided by above spree extensions? Help me?

The problem here is spree_auth_devise which is dependent on spree_frontend (2.0.0.rc1)

Probable solution will be to look for branch which is dependant on spree_frontend 2.0.0 coz spree 2.0 depends on spree_frontend (2.0.0)

I looked into its git repo spree_auth_devise is still pointed to spree_frontend 2.0.0.beta

We forked a branch of spree_auth locally.

Modified the Gemfile as follows:

gem 'spree', github: 'spree/spree', branch: '2-0-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', :branch => '2-0-stable'

Modified the spree_social.gemspec as follows:

s.add_dependency 'spree_core', '~> 2.0.0'

Modified the Versionfile to reflect the branch:

"2.0.x" => { :branch => '2-0-temp' }

Bundled with no problem and permitted us to bundle our project with Spree 2-0-stable

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM