Skip to content

Allow UV_NO_SYNC=1 UV_FROZEN=1 on uv run #9397

@inoa-jboliveira

Description

@inoa-jboliveira

I have a docker application where I don't want each uv run syncing every time (due to how I build the image without dev group on uv sync) and I don't want uv sync trying to resolve anything.
Therefore I tried to add both env variables to my docker image

UV_NO_SYNC=1
UV_FROZEN=1

For syncing, the UV_NO_SYNC variable is simply ignored, which makes sense and is desirable.

When doing uv run I get:

$ uv run foo
error: the argument '--no-sync' cannot be used with '--frozen'

Usage: uv run --no-sync

Also notice the error messages refer as if I passed conflicting arguments when in fact I used env variables which should be more lenient as in a best effort basis.

In any case, I do not think --no-sync and --frozen are exclusive parameters. They should play along well

Metadata

Metadata

Assignees

Labels

questionAsking for clarification or support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions