Commit d51c6dd
Fix Docker command to remove Gemfile.lock before bundle install
Change command from "bundle update" to "rm -f Gemfile.lock && bundle install"
to avoid dependency conflicts between different Rails versions.
With "bundle update", the existing Gemfile.lock would cause version
resolution failures when switching between Rails versions, especially
when both activerecord and railties are specified with different
version requirements.
Removing Gemfile.lock ensures each container gets the correct
dependencies for its specified RAILS_VERSION environment variable.
Tested and verified all services pass:
- Rails 6.1.7.10: 674 runs, 8772 assertions, 0 failures ✅
- Rails 7.0.10: 674 runs, 8772 assertions, 0 failures ✅
- Rails 7.1.6: 674 runs, 8772 assertions, 0 failures ✅
- Rails 7.2.3: 674 runs, 8772 assertions, 0 failures ✅
- Rails 8.0.4: 674 runs, 8772 assertions, 0 failures ✅
- Rails 8.1.2: 674 runs, 8772 assertions, 0 failures ✅
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 9783d74 commit d51c6dd
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments