Skip to content
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

Preserve fragments when applying verbatim redirects #4038

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Jun 5, 2024

Summary

echo "git+https://github.com/pypa/sample-namespace-packages.git#subdirectory=pkg_resources/pkg_a" | cargo run pip compile - now resolves to a compliant URL.

Closes #4037.

@charliermarsh charliermarsh marked this pull request as ready for review June 5, 2024 03:44
@charliermarsh charliermarsh added the bug Something isn't working label Jun 5, 2024
@@ -1565,7 +1565,7 @@ fn compile_git_subdirectory_static_metadata() -> Result<()> {
----- stdout -----
# This file was autogenerated by uv via the following command:
# uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2024-03-25T00:00:00Z requirements.in
uv-public-pypackage @ git+https://github.com/astral-test/uv-workspace-pypackage#subdirectory=uv-public-pypackage@b8c4e192456d736c27f2c84c61175c896dba8373
uv-public-pypackage @ git+https://github.com/astral-test/uv-workspace-pypackage@b8c4e192456d736c27f2c84c61175c896dba8373#subdirectory=uv-public-pypackage
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we actually had a case exercising this, hah, but the expectation was wrong.

@charliermarsh charliermarsh merged commit 6d148da into main Jun 5, 2024
46 checks passed
@charliermarsh charliermarsh deleted the charlie/frag branch June 5, 2024 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: wrong ordering with @commitID and #subdirectory after uv pip compile
1 participant