summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2019-01-10 11:15:08 -0800
committerJared Norman <jared@super.gd>2019-01-10 11:15:08 -0800
commitab0b0d62556357d21bd23ebc624563eb33e1c9a6 (patch)
tree57a35d45902675375722dfd163cb1446ab4a033d /Gemfile
parent34880833eb3b98c33b971e766fd35942e36ca7be (diff)
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.
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile4
1 files changed, 4 insertions, 0 deletions
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