spree-contrib / spree-multi-domain

Multiple Spree stores on different domains - single unified backed for processing orders
https://guides.spreecommerce.org
194 stars 191 forks source link

error while "bundle install" on spree #186

Closed exocode closed 5 years ago

exocode commented 5 years ago

when I use the most recent Spree I got this error while bundling following your Readme steps:

gem 'spree', '~> 3.6.4'
gem 'spree', '~> 3.6.4'
gem 'spree_auth_devise', '~> 3.3'
gem 'spree_gateway', '~> 3.3'
gem 'spree_multi_domain', github: 'spree-contrib/spree-multi-domain'
Bundler could not find compatible versions for gem "spree_analytics_trackers":
  In Gemfile:
    spree_multi_domain was resolved to 3.3.1, which depends on
      spree_analytics_trackers

Could not find gem 'spree_analytics_trackers', which is required by gem 'spree_multi_domain', in any of the sources.

Process finished with exit code 6
exocode commented 5 years ago

Also didn't work with Spree 3.5.0

gem 'spree', '~> 3.5.0'
gem 'spree_auth_devise', '~> 3.3'
gem 'spree_gateway', '~> 3.3'
gem 'spree_i18n', github: 'spree-contrib/spree_i18n'
gem 'spree_globalize', github: 'spree-contrib/spree_globalize'
gem 'spree_multi_domain', github: 'spree-contrib/spree-multi-domain'
Resolving dependencies....
Bundler could not find compatible versions for gem "spree_analytics_trackers":
  In Gemfile:
    spree_multi_domain was resolved to 3.3.1, which depends on
      spree_analytics_trackers

Could not find gem 'spree_analytics_trackers', which is required by gem 'spree_multi_domain', in any of the sources.

Process finished with exit code 6
krtschmr commented 5 years ago

came here for the same. this is pretty bad.

ruby 2.6, rails 5.2 and spree 3.7

$ bundle update
Fetching https://github.com/spree-contrib/spree-multi-domain.git
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies....
Bundler could not find compatible versions for gem "spree_analytics_trackers":
  In Gemfile:
    spree_multi_domain was resolved to 3.3.1, which depends on
      spree_analytics_trackers

Could not find gem 'spree_analytics_trackers', which is required by gem 'spree_multi_domain', in any of the sources.
krtschmr commented 5 years ago

@exocode

load the missing dependency manually in the gemfile. sucks but works


gem 'spree', '~> 3.7.0'
gem 'spree_auth_devise', '~> 3.5'
gem 'spree_gateway', '~> 3.4'
gem 'spree_analytics_trackers', github: 'spree-contrib/spree_analytics_trackers'
gem 'spree_multi_domain', github: 'spree-contrib/spree-multi-domain'
damianlegawiec commented 5 years ago

Hey spree_analytics_trackers were pushed to RubyGems - hope it helps!