You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to use the code suggested in the uv caching of dynamic metadata help doc to include git tags, I get a parse error. I suspect this is just a typo in the docs.
Minimal pyproject.toml file:
[project]
name = "uv-cache-test"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.11"
dependencies = []
[tool.uv]
cache-keys = [{ git = { commit = true, tag = true } }]
Error message:
$ uv sync
warning: Failed to parse `pyproject.toml` during settings discovery:
TOML parse error at line 10, column 14
|
10 | cache-keys = [{ git = { commit = true, tag = true } }]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
data did not match any variant of untagged enum CacheKey
If I change this to tags = true (note the plural), it doesn't report an error, so this might just be a typo in the docs.
uv 0.4.25
The text was updated successfully, but these errors were encountered:
When I try to use the code suggested in the uv caching of dynamic metadata help doc to include git tags, I get a parse error. I suspect this is just a typo in the docs.
Minimal pyproject.toml file:
Error message:
If I change this to
tags = true
(note the plural), it doesn't report an error, so this might just be a typo in the docs.uv 0.4.25
The text was updated successfully, but these errors were encountered: