diff options
author | Jared Norman <jared@super.gd> | 2019-01-10 11:15:08 -0800 |
---|---|---|
committer | Jared Norman <jared@super.gd> | 2019-01-10 11:15:08 -0800 |
commit | ab0b0d62556357d21bd23ebc624563eb33e1c9a6 (patch) | |
tree | 57a35d45902675375722dfd163cb1446ab4a033d /Gemfile | |
parent | 34880833eb3b98c33b971e766fd35942e36ca7be (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-- | Gemfile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |