Skip to content

Validation on empty environment variables #19499

@mike-vermillio

Description

@mike-vermillio

Summary

After updating to the latest version of uv 0.11.15 I noticed the following error in our docker build:

 > [builder 4/8] RUN --mount=type=cache,target=/root/.cache     uv sync --frozen --no-dev --no-install-local --no-install-project :
0.105 error: invalid value '' for '--no-binary-package <NO_BINARY_PACKAGE>': Not a valid package or extra name: "". Names must start and end with a letter or digit and may only contain -, _, ., and alphanumeric characters.
0.105 
0.105 For more information, try '--help'.

We have this in our dockerfile:

ARG UV_NO_BINARY_PACKAGE=""
ENV UV_NO_BINARY_PACKAGE=${UV_NO_BINARY_PACKAGE}

I assume it's related to this recent change: #19435

I rolled back to 0.11.14 and confirmed it worked previously. I wonder if that validation should be on cli args only?

Platform

Debian

Version

0.11.15

Python version

3.11

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions