uv
No long description provided.
Installation
dagger install github.com/typesafe-ai/daggerverse/uv@e17804ee1c9a00956d01e51ad8b9999e8f2f54aaEntrypoint
Return Type
Uv !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | Source directory. |
Example
dagger -m github.com/typesafe-ai/daggerverse/uv@e17804ee1c9a00956d01e51ad8b9999e8f2f54aa call \
func (m *MyModule) Example() *dagger.Uv {
return dag.
Uv()
}@function
def example() -> dagger.Uv:
return (
dag.uv()
)@func()
example(): Uv {
return dag
.uv()
}Types
Audit 🔗
Runs ``uv audit`` for a single workspace in a given uv image.
uvLock() 🔗
The workspace’s uv.lock file.
Return Type
File ! Example
Function UvAudit.uvLock is not accessible from the uv moduleFunction UvAudit.uvLock is not accessible from the uv moduleFunction UvAudit.uvLock is not accessible from the uv moduleFunction UvAudit.uvLock is not accessible from the uv modulepyproject() 🔗
The workspace’s pyproject.toml file.
Return Type
File ! Example
Function UvAudit.pyproject is not accessible from the uv moduleFunction UvAudit.pyproject is not accessible from the uv moduleFunction UvAudit.pyproject is not accessible from the uv moduleFunction UvAudit.pyproject is not accessible from the uv moduleimage() 🔗
uv image reference to run the audit in (must provide a
uvbinary).
Return Type
String ! Example
Function UvAudit.image is not accessible from the uv moduleFunction UvAudit.image is not accessible from the uv moduleFunction UvAudit.image is not accessible from the uv moduleFunction UvAudit.image is not accessible from the uv moduleuvToml() 🔗
The workspace’s uv.toml configuration file, if present.
Return Type
File Example
Function UvAudit.uvToml is not accessible from the uv moduleFunction UvAudit.uvToml is not accessible from the uv moduleFunction UvAudit.uvToml is not accessible from the uv moduleFunction UvAudit.uvToml is not accessible from the uv modulerun() 🔗
Run uv audit --frozen for this workspace.
Audits straight from the committed uv.lock without re-resolving against
package indexes (--frozen); vulnerability data comes from the public
OSV service, so no index credentials are required. A failing audit
(non-zero exit, e.g. vulnerabilities found) raises dagger.ExecError,
whose stdout/stderr carry uv’s report; the runner folds that into
the trace error (see Uv.audit).
Return Type
Void ! Example
Function UvAudit.run is not accessible from the uv moduleFunction UvAudit.run is not accessible from the uv moduleFunction UvAudit.run is not accessible from the uv moduleFunction UvAudit.run is not accessible from the uv moduleLocalPackage 🔗
A local (editable/directory) package in a uv workspace.
name() 🔗
Package name
Return Type
String ! Example
Function UvLocalPackage.name is not accessible from the uv moduleFunction UvLocalPackage.name is not accessible from the uv moduleFunction UvLocalPackage.name is not accessible from the uv moduleFunction UvLocalPackage.name is not accessible from the uv modulepath() 🔗
Workspace-relative path
Return Type
String ! Example
Function UvLocalPackage.path is not accessible from the uv moduleFunction UvLocalPackage.path is not accessible from the uv moduleFunction UvLocalPackage.path is not accessible from the uv moduleFunction UvLocalPackage.path is not accessible from the uv modulemodule() 🔗
Python module name
Return Type
String ! Example
Function UvLocalPackage.module is not accessible from the uv moduleFunction UvLocalPackage.module is not accessible from the uv moduleFunction UvLocalPackage.module is not accessible from the uv moduleFunction UvLocalPackage.module is not accessible from the uv moduleflat() 🔗
Flat layout (module at package root) vs src layout (module under src/)
Return Type
Boolean ! Example
Function UvLocalPackage.flat is not accessible from the uv moduleFunction UvLocalPackage.flat is not accessible from the uv moduleFunction UvLocalPackage.flat is not accessible from the uv moduleFunction UvLocalPackage.flat is not accessible from the uv moduleSyncPlan 🔗
Resolved build configuration for a uv workspace sync.
wsDir() 🔗
Resolved workspace directory (with codegen overlay if applicable)
Return Type
Directory ! Example
Function UvSyncPlan.wsDir is not accessible from the uv moduleFunction UvSyncPlan.wsDir is not accessible from the uv moduleFunction UvSyncPlan.wsDir is not accessible from the uv moduleFunction UvSyncPlan.wsDir is not accessible from the uv moduleallLocal() 🔗
Every local package in the workspace (sorted by name)
Return Type
[LocalPackage ! ] ! Example
Function UvSyncPlan.allLocal is not accessible from the uv moduleFunction UvSyncPlan.allLocal is not accessible from the uv moduleFunction UvSyncPlan.allLocal is not accessible from the uv moduleFunction UvSyncPlan.allLocal is not accessible from the uv moduleneededLocal() 🔗
Local packages the target transitively depends on (sorted by name)
Return Type
[LocalPackage ! ] ! Example
Function UvSyncPlan.neededLocal is not accessible from the uv moduleFunction UvSyncPlan.neededLocal is not accessible from the uv moduleFunction UvSyncPlan.neededLocal is not accessible from the uv moduleFunction UvSyncPlan.neededLocal is not accessible from the uv moduleflatPackage() 🔗
Whether the target package uses a flat layout (no build-system)
Return Type
Boolean ! Example
Function UvSyncPlan.flatPackage is not accessible from the uv moduleFunction UvSyncPlan.flatPackage is not accessible from the uv moduleFunction UvSyncPlan.flatPackage is not accessible from the uv moduleFunction UvSyncPlan.flatPackage is not accessible from the uv modulepackage() 🔗
Target package name (None means all packages)
Return Type
String Example
Function UvSyncPlan.package is not accessible from the uv moduleFunction UvSyncPlan.package is not accessible from the uv moduleFunction UvSyncPlan.package is not accessible from the uv moduleFunction UvSyncPlan.package is not accessible from the uv moduleuvSyncArgs() 🔗
Precomputed uv sync argv
Return Type
[String ! ] ! Example
Function UvSyncPlan.uvSyncArgs is not accessible from the uv moduleFunction UvSyncPlan.uvSyncArgs is not accessible from the uv moduleFunction UvSyncPlan.uvSyncArgs is not accessible from the uv moduleFunction UvSyncPlan.uvSyncArgs is not accessible from the uv moduleRemoteBuild 🔗
Container with remote deps installed; chain with_workspace_files then with_local_dependencies.
container() 🔗
Container with remote deps installed
Return Type
Container ! Example
dagger -m github.com/typesafe-ai/daggerverse/uv@e17804ee1c9a00956d01e51ad8b9999e8f2f54aa call \
with-remote-dependencies --base-container IMAGE:TAG --workspace-path string --all-extras boolean --all-groups boolean --all-packages boolean --dagger-codegen boolean --install boolean \
containerfunc (m *MyModule) Example(baseContainer *dagger.Container, workspacePath string, allExtras bool, allGroups bool, allPackages bool, daggerCodegen bool, install bool) *dagger.Container {
return dag.
Uv().
WithRemoteDependencies(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen, install).
Container()
}@function
def example(base_container: dagger.Container, workspace_path: str, all_extras: bool, all_groups: bool, all_packages: bool, dagger_codegen: bool, install: bool) -> dagger.Container:
return (
dag.uv()
.with_remote_dependencies(base_container, workspace_path, all_extras, all_groups, all_packages, dagger_codegen, install)
.container()
)@func()
example(baseContainer: Container, workspacePath: string, allExtras: boolean, allGroups: boolean, allPackages: boolean, daggerCodegen: boolean, install: boolean): Container {
return dag
.uv()
.withRemoteDependencies(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen, install)
.container()
}plan() 🔗
Build configuration carried through the pipeline
Return Type
SyncPlan ! Example
dagger -m github.com/typesafe-ai/daggerverse/uv@e17804ee1c9a00956d01e51ad8b9999e8f2f54aa call \
with-remote-dependencies --base-container IMAGE:TAG --workspace-path string --all-extras boolean --all-groups boolean --all-packages boolean --dagger-codegen boolean --install boolean \
planfunc (m *MyModule) Example(baseContainer *dagger.Container, workspacePath string, allExtras bool, allGroups bool, allPackages bool, daggerCodegen bool, install bool) *dagger.UvSyncPlan {
return dag.
Uv().
WithRemoteDependencies(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen, install).
Plan()
}@function
def example(base_container: dagger.Container, workspace_path: str, all_extras: bool, all_groups: bool, all_packages: bool, dagger_codegen: bool, install: bool) -> dagger.UvSyncPlan:
return (
dag.uv()
.with_remote_dependencies(base_container, workspace_path, all_extras, all_groups, all_packages, dagger_codegen, install)
.plan()
)@func()
example(baseContainer: Container, workspacePath: string, allExtras: boolean, allGroups: boolean, allPackages: boolean, daggerCodegen: boolean, install: boolean): UvSyncPlan {
return dag
.uv()
.withRemoteDependencies(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen, install)
.plan()
}withAllWorkspaceMembers() 🔗
Like with_workspace_files but scaffolds every local package, not just transitive deps.
Return Type
RemoteBuild ! Example
dagger -m github.com/typesafe-ai/daggerverse/uv@e17804ee1c9a00956d01e51ad8b9999e8f2f54aa call \
with-remote-dependencies --base-container IMAGE:TAG --workspace-path string --all-extras boolean --all-groups boolean --all-packages boolean --dagger-codegen boolean --install boolean \
with-all-workspace-membersfunc (m *MyModule) Example(baseContainer *dagger.Container, workspacePath string, allExtras bool, allGroups bool, allPackages bool, daggerCodegen bool, install bool) *dagger.UvRemoteBuild {
return dag.
Uv().
WithRemoteDependencies(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen, install).
WithAllWorkspaceMembers()
}@function
def example(base_container: dagger.Container, workspace_path: str, all_extras: bool, all_groups: bool, all_packages: bool, dagger_codegen: bool, install: bool) -> dagger.UvRemoteBuild:
return (
dag.uv()
.with_remote_dependencies(base_container, workspace_path, all_extras, all_groups, all_packages, dagger_codegen, install)
.with_all_workspace_members()
)@func()
example(baseContainer: Container, workspacePath: string, allExtras: boolean, allGroups: boolean, allPackages: boolean, daggerCodegen: boolean, install: boolean): UvRemoteBuild {
return dag
.uv()
.withRemoteDependencies(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen, install)
.withAllWorkspaceMembers()
}withContainer() 🔗
Return a new UvRemoteBuild with a different container but the same plan.
Return Type
RemoteBuild !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| container | Container ! | - | Replacement container (e.g. after installing non-Python packages) |
Example
dagger -m github.com/typesafe-ai/daggerverse/uv@e17804ee1c9a00956d01e51ad8b9999e8f2f54aa call \
with-remote-dependencies --base-container IMAGE:TAG --workspace-path string --all-extras boolean --all-groups boolean --all-packages boolean --dagger-codegen boolean --install boolean \
with-container --container IMAGE:TAGfunc (m *MyModule) Example(baseContainer *dagger.Container, workspacePath string, allExtras bool, allGroups bool, allPackages bool, daggerCodegen bool, install bool, container *dagger.Container) *dagger.UvRemoteBuild {
return dag.
Uv().
WithRemoteDependencies(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen, install).
WithContainer(container)
}@function
def example(base_container: dagger.Container, workspace_path: str, all_extras: bool, all_groups: bool, all_packages: bool, dagger_codegen: bool, install: bool, container: dagger.Container) -> dagger.UvRemoteBuild:
return (
dag.uv()
.with_remote_dependencies(base_container, workspace_path, all_extras, all_groups, all_packages, dagger_codegen, install)
.with_container(container)
)@func()
example(baseContainer: Container, workspacePath: string, allExtras: boolean, allGroups: boolean, allPackages: boolean, daggerCodegen: boolean, install: boolean, container: Container): UvRemoteBuild {
return dag
.uv()
.withRemoteDependencies(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen, install)
.withContainer(container)
}withLocalDependencies() 🔗
Copy real source, run final uv sync, and strip the build-time cache mount.
Return Type
Container ! Example
dagger -m github.com/typesafe-ai/daggerverse/uv@e17804ee1c9a00956d01e51ad8b9999e8f2f54aa call \
with-remote-dependencies --base-container IMAGE:TAG --workspace-path string --all-extras boolean --all-groups boolean --all-packages boolean --dagger-codegen boolean --install boolean \
with-local-dependenciesfunc (m *MyModule) Example(baseContainer *dagger.Container, workspacePath string, allExtras bool, allGroups bool, allPackages bool, daggerCodegen bool, install bool) *dagger.Container {
return dag.
Uv().
WithRemoteDependencies(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen, install).
WithLocalDependencies()
}@function
def example(base_container: dagger.Container, workspace_path: str, all_extras: bool, all_groups: bool, all_packages: bool, dagger_codegen: bool, install: bool) -> dagger.Container:
return (
dag.uv()
.with_remote_dependencies(base_container, workspace_path, all_extras, all_groups, all_packages, dagger_codegen, install)
.with_local_dependencies()
)@func()
example(baseContainer: Container, workspacePath: string, allExtras: boolean, allGroups: boolean, allPackages: boolean, daggerCodegen: boolean, install: boolean): Container {
return dag
.uv()
.withRemoteDependencies(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen, install)
.withLocalDependencies()
}withWorkspaceFiles() 🔗
Scaffold needed local package stubs (pyproject.toml + empty src/) into the container.
Return Type
RemoteBuild ! Example
dagger -m github.com/typesafe-ai/daggerverse/uv@e17804ee1c9a00956d01e51ad8b9999e8f2f54aa call \
with-remote-dependencies --base-container IMAGE:TAG --workspace-path string --all-extras boolean --all-groups boolean --all-packages boolean --dagger-codegen boolean --install boolean \
with-workspace-filesfunc (m *MyModule) Example(baseContainer *dagger.Container, workspacePath string, allExtras bool, allGroups bool, allPackages bool, daggerCodegen bool, install bool) *dagger.UvRemoteBuild {
return dag.
Uv().
WithRemoteDependencies(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen, install).
WithWorkspaceFiles()
}@function
def example(base_container: dagger.Container, workspace_path: str, all_extras: bool, all_groups: bool, all_packages: bool, dagger_codegen: bool, install: bool) -> dagger.UvRemoteBuild:
return (
dag.uv()
.with_remote_dependencies(base_container, workspace_path, all_extras, all_groups, all_packages, dagger_codegen, install)
.with_workspace_files()
)@func()
example(baseContainer: Container, workspacePath: string, allExtras: boolean, allGroups: boolean, allPackages: boolean, daggerCodegen: boolean, install: boolean): UvRemoteBuild {
return dag
.uv()
.withRemoteDependencies(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen, install)
.withWorkspaceFiles()
}WorkspaceSource 🔗
A self-contained uv workspace: the source files rooted at a ``uv.lock``. Currently carries the lockfile and the ``pyproject.toml`` that ``uv audit`` requires alongside it; it will carry more of the workspace in the future. Named ``UvWorkspaceSource`` (not ``UvWorkspace``) to avoid colliding with the sibling ``uv-workspace`` module's main ``UvWorkspace`` object when both are composed in a parent module.
uvLock() 🔗
The workspace’s
uv.lockfile.
Return Type
File ! Example
Function UvWorkspaceSource.uvLock is not accessible from the uv moduleFunction UvWorkspaceSource.uvLock is not accessible from the uv moduleFunction UvWorkspaceSource.uvLock is not accessible from the uv moduleFunction UvWorkspaceSource.uvLock is not accessible from the uv modulepyproject() 🔗
The workspace’s
pyproject.tomlfile (required byuv audit).
Return Type
File ! Example
Function UvWorkspaceSource.pyproject is not accessible from the uv moduleFunction UvWorkspaceSource.pyproject is not accessible from the uv moduleFunction UvWorkspaceSource.pyproject is not accessible from the uv moduleFunction UvWorkspaceSource.pyproject is not accessible from the uv moduleuvToml() 🔗
The workspace’s
uv.tomlconfiguration file, if present.
Return Type
File Example
Function UvWorkspaceSource.uvToml is not accessible from the uv moduleFunction UvWorkspaceSource.uvToml is not accessible from the uv moduleFunction UvWorkspaceSource.uvToml is not accessible from the uv moduleFunction UvWorkspaceSource.uvToml is not accessible from the uv moduleaudit() 🔗
Audit this workspace’s locked dependencies using the given uv image.
The image is supplied by the caller so this type stays container-free (the runner owns image/version selection).
Return Type
Audit !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| image | String ! | - | uv image reference to run the audit in. |
Example
Function UvWorkspaceSource.audit is not accessible from the uv moduleFunction UvWorkspaceSource.audit is not accessible from the uv moduleFunction UvWorkspaceSource.audit is not accessible from the uv moduleFunction UvWorkspaceSource.audit is not accessible from the uv moduleuvVersion() 🔗
The uv version this workspace requires, as a concrete image tag.
Reads required-version (a PEP 440 specifier) from uv.toml or the
[tool.uv] table of pyproject.toml. Exact pins are used as-is; ranges
resolve to their minimal compatible version (no PyPI lookup). Falls back
to the default latest tag when unspecified.
Return Type
String ! Example
Function UvWorkspaceSource.uvVersion is not accessible from the uv moduleFunction UvWorkspaceSource.uvVersion is not accessible from the uv moduleFunction UvWorkspaceSource.uvVersion is not accessible from the uv moduleFunction UvWorkspaceSource.uvVersion is not accessible from the uv moduleUv 🔗
Tooling for uv-managed Python projects.
source() 🔗
Source directory.
Return Type
Directory ! Example
dagger -m github.com/typesafe-ai/daggerverse/uv@e17804ee1c9a00956d01e51ad8b9999e8f2f54aa call \
sourcefunc (m *MyModule) Example() *dagger.Directory {
return dag.
Uv().
Source()
}@function
def example() -> dagger.Directory:
return (
dag.uv()
.source()
)@func()
example(): Directory {
return dag
.uv()
.source()
}audit() 🔗
Run uv audit for every workspace in parallel.
Exits non-zero when any (non-excluded) workspace fails its audit.
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| exclude | [String ! ] | null | Glob patterns (source-relative) of workspace paths to skip, e.g. `**/tests/_packages/**`. |
| uvVersion | String | null | uv version (image tag) to run with. Defaults to the version detected per workspace; ignored when `image` is set. |
| image | String | null | Full uv image reference to run with. Overrides `uv_version`. |
Example
dagger -m github.com/typesafe-ai/daggerverse/uv@e17804ee1c9a00956d01e51ad8b9999e8f2f54aa call \
auditfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Uv().
Audit(ctx)
}@function
async def example() -> None:
return await (
dag.uv()
.audit()
)@func()
async example(): Promise<void> {
return dag
.uv()
.audit()
}auditWorkspace() 🔗
Run uv audit for a single workspace.
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| uvLock | File ! | - | The workspace's uv.lock file. |
| pyproject | File ! | - | The workspace's pyproject.toml file. |
| uvToml | File | null | The workspace's uv.toml configuration file, if present. |
| uvVersion | String | null | uv version (image tag) to run with. Defaults to the version detected from the workspace; ignored when `image` is set. |
| image | String | null | Full uv image reference to run with. Overrides `uv_version`. |
Example
dagger -m github.com/typesafe-ai/daggerverse/uv@e17804ee1c9a00956d01e51ad8b9999e8f2f54aa call \
audit-workspace --uv-lock file:path --pyproject file:pathfunc (m *MyModule) Example(ctx context.Context, uvLock *dagger.File, pyproject *dagger.File) {
return dag.
Uv().
AuditWorkspace(ctx, uvLock, pyproject)
}@function
async def example(uv_lock: dagger.File, pyproject: dagger.File) -> None:
return await (
dag.uv()
.audit_workspace(uv_lock, pyproject)
)@func()
async example(uvLock: File, pyproject: File): Promise<void> {
return dag
.uv()
.auditWorkspace(uvLock, pyproject)
}build() 🔗
Build a minimal container with deps installed for the given package.
Convenience method composing with_remote_dependencies,
with_workspace_files, and with_local_dependencies.
For fine-grained control (e.g. running pulumi install between
remote deps and local source), call them individually.
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| baseContainer | Container ! | - | Pre-configured container (with auth, system packages, etc.) to build on. |
| workspacePath | String ! | "." | Path to the workspace root (holding uv.lock and pyproject.toml) within the source directory. |
| package | String | null | No description provided |
| extra | [String ! ] | null | No description provided |
| group | [String ! ] | null | No description provided |
| allExtras | Boolean ! | false | Install every extra; maps to `uv sync --all-extras` |
| allGroups | Boolean ! | false | Install every dependency group; maps to `uv sync --all-groups` |
| allPackages | Boolean ! | false | Install every workspace member; maps to `uv sync --all-packages` |
| daggerCodegen | Boolean ! | true | If True (default), and the package being built has a `dagger.json`, run Dagger codegen and overlay the generated SDK before `uv sync`. No-op for non-Dagger projects. |
Example
dagger -m github.com/typesafe-ai/daggerverse/uv@e17804ee1c9a00956d01e51ad8b9999e8f2f54aa call \
build --base-container IMAGE:TAG --workspace-path string --all-extras boolean --all-groups boolean --all-packages boolean --dagger-codegen booleanfunc (m *MyModule) Example(baseContainer *dagger.Container, workspacePath string, allExtras bool, allGroups bool, allPackages bool, daggerCodegen bool) *dagger.Container {
return dag.
Uv().
Build(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen)
}@function
def example(base_container: dagger.Container, workspace_path: str, all_extras: bool, all_groups: bool, all_packages: bool, dagger_codegen: bool) -> dagger.Container:
return (
dag.uv()
.build(base_container, workspace_path, all_extras, all_groups, all_packages, dagger_codegen)
)@func()
example(baseContainer: Container, workspacePath: string, allExtras: boolean, allGroups: boolean, allPackages: boolean, daggerCodegen: boolean): Container {
return dag
.uv()
.build(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen)
}withRemoteDependencies() 🔗
Prepare the build plan and (optionally) install remote dependencies.
Copies the root pyproject.toml and uv.lock into the container and,
when install is True (the default), runs uv sync --no-install-local.
Returns a UvRemoteBuild for the next pipeline steps:
with_workspace_files() to scaffold local packages, then
with_local_dependencies() to install them.
Return Type
RemoteBuild !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| baseContainer | Container ! | - | Pre-configured container (with auth, system packages, etc.) to build on. |
| workspacePath | String ! | "." | Path to the workspace root (holding uv.lock and pyproject.toml) within the source directory. |
| package | String | null | No description provided |
| extra | [String ! ] | null | No description provided |
| group | [String ! ] | null | No description provided |
| allExtras | Boolean ! | false | Install every extra; maps to `uv sync --all-extras` |
| allGroups | Boolean ! | false | Install every dependency group; maps to `uv sync --all-groups` |
| allPackages | Boolean ! | false | Install every workspace member; maps to `uv sync --all-packages` |
| daggerCodegen | Boolean ! | true | If True (default), and the package being built has a `dagger.json`, run Dagger codegen and overlay the generated SDK before `uv sync`. No-op for non-Dagger projects. |
| install | Boolean ! | true | Run `uv sync --no-install-local` to install remote deps. Set to False when another tool (e.g. `pulumi install`) handles dependency installation. |
Example
dagger -m github.com/typesafe-ai/daggerverse/uv@e17804ee1c9a00956d01e51ad8b9999e8f2f54aa call \
with-remote-dependencies --base-container IMAGE:TAG --workspace-path string --all-extras boolean --all-groups boolean --all-packages boolean --dagger-codegen boolean --install booleanfunc (m *MyModule) Example(baseContainer *dagger.Container, workspacePath string, allExtras bool, allGroups bool, allPackages bool, daggerCodegen bool, install bool) *dagger.UvRemoteBuild {
return dag.
Uv().
WithRemoteDependencies(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen, install)
}@function
def example(base_container: dagger.Container, workspace_path: str, all_extras: bool, all_groups: bool, all_packages: bool, dagger_codegen: bool, install: bool) -> dagger.UvRemoteBuild:
return (
dag.uv()
.with_remote_dependencies(base_container, workspace_path, all_extras, all_groups, all_packages, dagger_codegen, install)
)@func()
example(baseContainer: Container, workspacePath: string, allExtras: boolean, allGroups: boolean, allPackages: boolean, daggerCodegen: boolean, install: boolean): UvRemoteBuild {
return dag
.uv()
.withRemoteDependencies(baseContainer, workspacePath, allExtras, allGroups, allPackages, daggerCodegen, install)
}workspaces() 🔗
Every uv workspace in the source tree (one per uv.lock).
Return Type
[WorkspaceSource ! ] ! Example
dagger -m github.com/typesafe-ai/daggerverse/uv@e17804ee1c9a00956d01e51ad8b9999e8f2f54aa call \
workspacesfunc (m *MyModule) Example() []*dagger.UvWorkspaceSource {
return dag.
Uv().
Workspaces()
}@function
def example() -> List[dagger.UvWorkspaceSource]:
return (
dag.uv()
.workspaces()
)@func()
example(): UvWorkspaceSource[] {
return dag
.uv()
.workspaces()
}