thoughtbot / suspenders

A Rails template with our standard defaults.
https://thoughtbot.com
MIT License
4.02k stars 528 forks source link

The recommended script to create a new app runs into a file conflict when run with Rails `v7.2.0` #1221

Closed stevepolitodesign closed 3 months ago

stevepolitodesign commented 3 months ago

Relates to #1214

Possibly relates to #1216 and #1215

Suspenders requires we run the following command to create a new application:

rails new app_name \
 --skip-test \
 -d=postgresql \
 -m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb

However, after the release of Rails v7.2.0, this command fails:

    conflict  .rubocop.yml
Overwrite /Users/polito/Sites/suspenders_qa_7_2/.rubocop.yml? (enter "h" for help) [Ynaqdhm]
stevepolitodesign commented 3 months ago

One simple solution is to update the README by recommending we pass --skip_rubocop

stevepolitodesign commented 3 months ago

Running the following worked. Note that we pass --skip_rubocop

rails new suspenders_qa_7_2 \
 --skip-test \
 --skip_rubocop \
 -d=postgresql \
 -m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb