Skip to content

Commit 40ce0b0

Browse files
docs(test): Add --reinstall flag to uv sync command (#274)
Without `--reinstall`, `uv sync` will use existing wheels it finds for workspace members. This behaviour is not what you want for testing e.g. - Use "uv sync --group test" to create a brand new environment - Switch branches - Use "uv sync --group test" to update the venv to new branch and test -> does not work as expected. Packages from previous branch will be used. The only solution is `--reinstall` which forces a rebuild of the local workspace members.
1 parent 07d0061 commit 40ce0b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ i.e. the top directory of the `ado` repo.
66
We recommend using `uv sync` to install all test requirements:
77

88
```commandline
9-
uv sync --group test
9+
uv sync --group test --reinstall
1010
```
1111

1212
Note: This will also remove all packages not required for testing and sync
1313
all package versions to the lockfile.
14+
Local packages will be rebuilt.
1415

1516
To execute all tests run:
1617

0 commit comments

Comments
 (0)