zulip/tools/setup
Lalit 112df91fbd provision: Do not require that no other yarn precedes us in $PATH.
`check_version` in `install-yarn` had the rather careful check that
the yarn it installed into `/usr/bin/yarn` was the yarn which was
first in the user's `$PATH`.  This caused problems when the user had a
pre-existing `/usr/local/bin/yarn`; however, those problems are
limited to the `install-yarn` script itself, since the nearly all
calls to yarn from Zulip's code already hardcode the `/srv/zulip-yarn`
location, and do not depend on what is in `$PATH`.

Remove the checks in `install-yarn` that depend on the local `$PATH`,
and stop installing our `yarn` into it.  We also adjust the two
callsites which did not specify the full path to `yarn`, so use
`/srv/zulip-yarn`.

Fixes: #23993

Co-authored-by: Alex Vandiver <alexmv@zulip.com>
2023-01-19 17:51:52 -05:00
..
apns tools: Add script apns/prep-cert. 2022-12-07 22:07:36 -08:00
dev-vagrant-docker scripts: Pass --retry 3 to curl. 2022-11-08 08:07:36 -08:00
emoji ruff: Fix SIM118 Use `key in dict` instead of `key in dict.keys()`. 2023-01-04 16:25:07 -08:00
__init__.py
bootstrap-aws-installer bootstrap-aws-installer: Switch to an IMDSv2-compatible URL. 2022-10-28 16:52:54 -07:00
bootstrap-awscli.sh bootstrap-awscli: Upgrade awscli version. 2022-11-08 13:26:32 -08:00
build_pygments_data build_pygments_data: Reprioritize and categorize pygment language codes. 2021-05-24 23:15:39 -07:00
build_timezone_values requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00
dev-motd Vagrantfile: Be nicer to /etc/update-motd.d. 2019-05-24 17:33:06 -07:00
generate-fixtures shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
generate-test-credentials shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
generate_integration_bots_avatars.py uploads: Split out S3 and local file backends into separate files. 2023-01-09 18:23:58 -05:00
generate_zulip_bots_static_files.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
install-aws-server install-aws-server: Use correct fd and exit code for usage message. 2023-01-04 14:01:34 -08:00
install-shellcheck install-shellcheck: Upgrade ShellCheck to 0.9.0. 2023-01-04 14:01:34 -08:00
install-shfmt install-shfmt: Upgrade shfmt to 3.6.0. 2023-01-04 14:01:34 -08:00
install-transifex-cli provision: Replace transifex-client with new transifex-cli. 2022-12-13 12:34:08 -08:00
lang.json build_pygments_data: Reprioritize and categorize pygment language codes. 2021-05-24 23:15:39 -07:00
optimize-svg provision: Do not require that no other yarn precedes us in $PATH. 2023-01-19 17:51:52 -05:00
postgresql-init-dev-db docs: Fix capitalization mistakes. 2021-05-10 09:57:26 -07:00
postgresql-init-test-db tools: Rename postgres to postgresql in tool names. 2020-10-28 11:57:02 -07:00
setup_venvs.py provision: Silently unset PIP_USER if set. 2021-10-22 13:43:40 -07:00
vagrant-provision Vagrantfile: Move inline provision script to a separate file. 2021-09-14 10:22:48 -07:00