You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit add a method to check if the yarn version need installation through Corepack instead of NPM.
Why? Because Yarn > 1.x.x isn't installable through NPM since 2019. Extract from Yarn documentation :
"Why is the yarn package on npm still on 1.x?
Modern releases of Yarn haven't been distributed on npm since 2019.
The reason is simple: because Yarn wasn't distributed alongside Node.js, many people relied on something like npm install -g yarn as part of their image building. It meant that any breaking change would make their way on everyone using this pattern, and break their deployments.
As a result, we decided to retire the yarn npm package and only use it for the few 1.x maintenance releases needed. Yarn is now installed directly from our website, via either Corepack or yarn set version."
Update railties/lib/rails/generators/app_base.rb
Co-authored-by: zzak <[email protected]>
combine RUN on single line
0 commit comments