File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
railties/lib/rails/generators Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -642,12 +642,14 @@ def run_bundle
642
642
bundle_command ( "install" , "BUNDLE_IGNORE_MESSAGES" => "1" )
643
643
644
644
# The vast majority of Rails apps will be deployed on `x86_64-linux`.
645
- platform = [ "--add-platform=x86_64-linux" ]
645
+ platforms = [ "--add-platform=x86_64-linux" ]
646
646
647
647
# Users that develop on M1 mac may use docker and would need `aarch64-linux` as well.
648
- platform << "--add-platform=aarch64-linux" if RUBY_PLATFORM . start_with? ( "arm64" )
648
+ platforms << "--add-platform=aarch64-linux" if RUBY_PLATFORM . start_with? ( "arm64" )
649
649
650
- bundle_command ( "lock #{ platform . join ( " " ) } " , "BUNDLE_IGNORE_MESSAGES" => "1" )
650
+ platforms . each do |platform |
651
+ bundle_command ( "lock #{ platform } " , "BUNDLE_IGNORE_MESSAGES" => "1" )
652
+ end
651
653
end
652
654
end
653
655
You can’t perform that action at this time.
0 commit comments