]> git.openstreetmap.org Git - rails.git/commit
Use bin/yarn consistently for installations
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 11 Jan 2023 11:26:35 +0000 (11:26 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 11 Jan 2023 13:58:54 +0000 (13:58 +0000)
commit581bf517cb591400d1b194606294868015f4f87c
tree9918d1b633601fb563d8d9726dc517c834a653a1
parent0c7fa2caeca882c9e8d45f11bde86abf967fe0e3
Use bin/yarn consistently for installations

Since rails 7, the `rails yarn:install` command no longer uses
bin/yarn and so a) doesn't detect yarn binaries named "yarnpkg"
(e.g. Ubuntu) and b) doesn't allow us to pass any flags to yarn,
(e.g. "--ignore-engines").

Since we want to avoid making the installation more difficult (by
e.g. installing yarn from other sources, or requiring particular
node versions) we can instead just use our existing bin/yarn script.

The reason Dockerfile did its own thing was to avoid pulling in
big chunks of rails, but bin/yarn is a standalone ruby script.

Fixes #3579
.github/workflows/lint.yml
.github/workflows/tests.yml
Dockerfile
INSTALL.md
script/vagrant/setup/provision.sh