From 003ef3d4586ac1dbfeb573275d96dd5f4da34915 Mon Sep 17 00:00:00 2001 From: AllenFang Date: Sun, 23 Mar 2025 00:32:12 -0700 Subject: [PATCH 1/3] suggest to use uv to run the generate client command --- frontend/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/README.md b/frontend/README.md index bbb73cb447..ecf7e06471 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -80,7 +80,7 @@ But it would be only to clean them up, leaving them won't really have any effect * From the top level project directory, run the script: ```bash -./scripts/generate-client.sh +VIRTUAL_ENV=./backend/.venv uv run bash scripts/generate-client.sh ``` * Commit the changes. From 9352d4e526e4baf53920324c8b9684de28244983 Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Sat, 11 Oct 2025 00:18:37 +0200 Subject: [PATCH 2/3] Added link to `acrtivate` docs, restored the default command --- frontend/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/README.md b/frontend/README.md index ecf7e06471..3533bfdddc 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -76,9 +76,15 @@ But it would be only to clean them up, leaving them won't really have any effect ### Automatically -* Activate the backend virtual environment. +* [Activate](../backend/README.md#general-workflow) the backend virtual environment. * From the top level project directory, run the script: +```bash +bash ./scripts/generate-client.sh +``` + +**Alternatively**, to ensure the virtual environment is used even if it’s not activated, run: + ```bash VIRTUAL_ENV=./backend/.venv uv run bash scripts/generate-client.sh ``` From 18427d25fc5e293252f1dea0f0e905e1c05c2dad Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Sat, 11 Oct 2025 00:28:44 +0200 Subject: [PATCH 3/3] Wrap alternative in TIP --- frontend/README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/README.md b/frontend/README.md index 3533bfdddc..f2b499d7c6 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -83,11 +83,12 @@ But it would be only to clean them up, leaving them won't really have any effect bash ./scripts/generate-client.sh ``` -**Alternatively**, to ensure the virtual environment is used even if it’s not activated, run: - -```bash -VIRTUAL_ENV=./backend/.venv uv run bash scripts/generate-client.sh -``` +> [!TIP] +> Alternatively, to ensure the virtual environment is used even if it’s not activated, run: +> +> ```bash +> VIRTUAL_ENV=./backend/.venv uv run bash scripts/generate-client.sh +> ``` * Commit the changes.