mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
Merge 320052f466
into f609e1ddaf
This commit is contained in:
commit
ea16bd4030
1 changed files with 30 additions and 0 deletions
|
@ -56,6 +56,36 @@ By default, `uv run` and `uv sync` operates on the workspace root. For example,
|
|||
example, `uv run` and `uv run --package albatross` would be equivalent, while
|
||||
`uv run --package bird-feeder` would run the command in the `bird-feeder` package.
|
||||
|
||||
## Installing Dependencies for the Entire Workspace or Specific Packages
|
||||
|
||||
To install the dependencies for the entire workspace and its sub-workspaces, you can run:
|
||||
|
||||
```shell
|
||||
uv sync --all-packages
|
||||
```
|
||||
|
||||
This will install the dependencies for the root workspace as well as all the packages defined within
|
||||
your workspace.
|
||||
|
||||
If you want to install dependencies for the root workspace and a specific sub-workspace only, follow
|
||||
these steps:
|
||||
|
||||
1. First, install the dependencies for the root workspace by running:
|
||||
|
||||
```shell
|
||||
uv sync
|
||||
```
|
||||
|
||||
2. Then, install the dependencies for the specific sub-workspace (for example, bird-feeder) by
|
||||
running:
|
||||
|
||||
```shell
|
||||
uv sync --inexact --package bird-feeder
|
||||
```
|
||||
|
||||
The --inexact flag ensures that only the specified package and its dependencies are installed,
|
||||
without impacting the rest of the workspace.
|
||||
|
||||
## Workspace sources
|
||||
|
||||
Within a workspace, dependencies on workspace members are facilitated via
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue