-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uv add --index
does not accept special characters in the index name
#8315
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Contribution especially encouraged
Comments
vinibrsl
changed the title
Oct 18, 2024
uv add --index
does not accept special characters as the index nameuv add --index
does not accept special characters in the index name
Yeah right now they must be alphanumeric uv/crates/uv-distribution-types/src/index.rs Line 161 in 2153c6a
Underscores and dashes seem pretty reasonable to me? |
Yeah that seems fine. |
charliermarsh
added
bug
Something isn't working
help wanted
Contribution especially encouraged
labels
Oct 18, 2024
vinibrsl
added a commit
to vinibrsl/uv
that referenced
this issue
Oct 18, 2024
Previously, `uv add --index` command threw an error when the index name included characters like hyphens or underscores. Closes astral-sh#8315
MtkN1
pushed a commit
to MtkN1/uv
that referenced
this issue
Oct 21, 2024
Previously, `uv add --index` command threw an error when the index name included characters like hyphens or underscores. Closes astral-sh#8315
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Contribution especially encouraged
uv throws an error when adding a custom index with a name that includes characters like hyphens or underscores. While the equal sign (=) is understandably restricted as the separator, other characters should be allowed in the index name.
If I rename my_custom_index to mycustomindex, the command works as expected, e.g.
uv add --index mycustomindex=https://customindex.test/path/to/index my_package
.Version
Related: #7746
The text was updated successfully, but these errors were encountered: