Skip to content

Document how to specify subdirectory in git urls #10889

@mickvangelderen

Description

@mickvangelderen

Summary

Currently the documentation mentions:

A subdirectory may be specified if the package isn't in the repository root.

From this sentence it is not clear how to actually specify the subdirectory. Only while writing a PR to add a --subdirectory parameter to uv add (which turns out to be unnecessary) I found out that the subdirectory should be specified in the URL as a fragment: <url>#subdirectory=<subdirectory>.

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions