Skip to content

Parse -r and -c entries as relative to containing file - #1421

Merged
charliermarsh merged 1 commit into
mainfrom
charlie/rel
Feb 16, 2024
Merged

charliermarsh merged 1 commit into
mainfrom
charlie/rel

Conversation

@charliermarsh

Copy link
Copy Markdown
Member

Summary

In a requirements.txt file, it turns out that the -c and -r entries should be interpreted as relative to the file in which they're declared, while the -e entries should be interpreted as relative to the current working directory, no matter where they're defined.

Previously, we always used the current working directory; now, we use the declaring file's directory for -c and -r.

Closes #1367.

Closes #1416.

@charliermarsh charliermarsh added the bug Something isn't working label Feb 16, 2024
@charliermarsh
charliermarsh requested a review from zanieb February 16, 2024 03:57
@charliermarsh
charliermarsh force-pushed the charlie/rel branch 2 times, most recently from 9ffa7c4 to 4443e50 Compare February 16, 2024 04:03
Comment thread crates/uv/tests/pip_compile.rs Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Also verified that this fails on main.

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

2 participants