solidusio / solidus

🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
https://solidus.io
Other
5.02k stars 1.29k forks source link

Cannot run core test suite locally for v1.3.0 #1973

Closed bbuchalter closed 7 years ago

bbuchalter commented 7 years ago

This may be a bundler issue, but it is preventing me from effectively upgrading from v1.2.0 to v1.3.0, so I thought I'd file the issue here and see what we can figure out.

Steps to reproduce

git clone https://github.com/solidusio/solidus.git solidus_13_bundler_test
cd solidus_13_bundler_test/core
chruby 2.3
gem uninstall bundler -ax
gem install bundler -v=1.13.7
gco v1.3.0
mkdir .bundle
curl https://gist.githubusercontent.com/bbuchalter/a15e853e158ad1f146f9927bdbb25b08/raw/926f328fcaa3ac69dbb70cdbc4d876d034689940/bundleconfig > .bundle/config
bundle install
bundle exec rake test_app

Expected behavior

bundle exec rake test_app runs successfully

Actual behavior

Generating dummy Rails application...
Setting up dummy database...
bundle exec rake db:drop db:create db:migrate
rake aborted!
Bundler::VersionConflict: Bundler could not find compatible versions for gem "canonical-rails":
  In Gemfile:
    solidus was resolved to 1.3.0, which depends on
      solidus_frontend (= 1.3.0) was resolved to 1.3.0, which depends on
        canonical-rails (~> 0.0.4)

Could not find gem 'canonical-rails (~> 0.0.4)', which is required by gem 'solidus_frontend (= 1.3.0)', in any of the sources.

System configuration

Solidus Version: 1.3.0

Extensions in use: none

bbuchalter commented 7 years ago

This also happens with a more stripped down ./bundle/config file:

---
BUNDLE_PATH: "vendor/bundle"
BUNDLE_DISABLE_SHARED_GEMS: "true"
BUNDLE_MIRROR__HTTPS://RUBYGEMS__ORG/: "http://localhost:9292"

It's also worth noting this happens when there is no ~/.bundle/config adding further options. Here is the output of bundle config:

Settings are listed in order of priority. The top value will be used.
path
Set for your local app (/Users/brian/workspace/solidus_13_bundler_test/core/.bundle/config): "vendor/bundle"

disable_shared_gems
Set for your local app (/Users/brian/workspace/solidus_13_bundler_test/core/.bundle/config): "true"

mirror.https://rubygems.org/
Set for your local app (/Users/brian/workspace/solidus_13_bundler_test/core/.bundle/config): "http://localhost:9292"
jhawthorn commented 7 years ago

This looks some type of bundler issue. I am able to bundle 1.3 locally.

Can you try disabling your rubygems mirror?

bbuchalter commented 7 years ago

Let's not worry about this any more. Bundler is crazy for now.