uv icon indicating copy to clipboard operation
uv copied to clipboard

No error when version specifier doesn't match requirement source

Open ibraheemdev opened this issue 1 year ago • 2 comments

Similar to https://github.com/astral-sh/uv/issues/4603, we should verify the version of a source matches the specifier. For example,

dependencies = [
    "uv-public-pypackage==0.0.2",
]

[tool.uv.sources]
uv-public-pypackage = { git = "https://github.com/astral-test/uv-public-pypackage", tag = "0.0.1" }

ibraheemdev avatar Jun 27 '24 22:06 ibraheemdev

Alternatively we shouldn't allow version specifiers there at all.

ibraheemdev avatar Jun 27 '24 22:06 ibraheemdev

I added test coverage to at least codify the existing behavior in https://github.com/astral-sh/uv/pull/6051.

charliermarsh avatar Aug 12 '24 23:08 charliermarsh

I think I'll close this as "intentional".

charliermarsh avatar Nov 23 '24 03:11 charliermarsh