From ab0b0d62556357d21bd23ebc624563eb33e1c9a6 Mon Sep 17 00:00:00 2001 From: Jared Norman Date: Thu, 10 Jan 2019 11:15:08 -0800 Subject: Add Gemfile hack Unfortunately bundler (1.x and 2.x) seems to be horrible at resolving the dependencies here. I chatted with someone who knows a fair bit more than me about how bundler's algorithm works, and he suggested that the issue was that it was having trouble locking down to a specific Rails version. This allows us to specify the Rails version we want ("~> 5.1.0" does the trick) which causes bundler to not struggle for 15 minutes to resolve dependencies anymore. --- Gemfile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Gemfile') diff --git a/Gemfile b/Gemfile index bf5c806..b1849de 100644 --- a/Gemfile +++ b/Gemfile @@ -6,6 +6,10 @@ branch = ENV.fetch('SOLIDUS_BRANCH', 'master') gem "solidus", github: "solidusio/solidus", branch: branch +if ENV['RAILS_VERSION'] + gem "rails", ENV['RAILS_VERSON'] +end + if ENV.fetch('DB') == 'postgres' gem 'pg' end -- cgit v1.2.3