From 9a211b239c924cb9d2cebb86d2f9653f475b4a50 Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Thu, 8 Aug 2024 16:10:18 +0200 Subject: [PATCH] script/bootstrap: Fix sqlx command by using newer version (#15980) Version 0.5.7 doesn't have the `--database-url` command line flag, so `script/bootstrap` didn't work. Since we use `0.7` in collab (see [here](https://github.com/zed-industries/zed/blob/73fb8277fc699600793e39e8320aa812cce48694/crates/collab/Cargo.toml#L60)) and sqlx 0.7.2 has the `--database-url` flag, we use that instead. Release Notes: - N/A Co-authored-by: Bennet --- script/bootstrap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/bootstrap b/script/bootstrap index 396e3f6c00..999a11749c 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -11,9 +11,9 @@ else fi # Install sqlx-cli if needed -if [[ "$(sqlx --version)" != "sqlx-cli 0.5.7" ]]; then - echo "sqlx-cli not found or not the required version, installing version 0.5.7..." - cargo install sqlx-cli --version 0.5.7 +if [[ "$(sqlx --version)" != "sqlx-cli 0.7.2" ]]; then + echo "sqlx-cli not found or not the required version, installing version 0.7.2..." + cargo install sqlx-cli --version 0.7.2 fi cd crates/collab