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

Respect --index-url provided via requirements.txt #1719

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Conversation

charliermarsh
Copy link
Member

Summary

When we read --index-url from a requirements.txt, we attempt to respect the --index-url provided by the CLI if it exists. Unfortunately, --index-url from the CLI has a default value... so we never respect the --index-url in the requirements file.

This PR modifies the CLI to use None, and moves the default into logic in the IndexLocations struct.

Closes #1692.

@charliermarsh charliermarsh added the bug Something isn't working label Feb 19, 2024
@charliermarsh charliermarsh force-pushed the charlie/inde branch 3 times, most recently from d25423a to 97f669f Compare February 19, 2024 20:50
@charliermarsh charliermarsh marked this pull request as draft February 19, 2024 21:24
@charliermarsh charliermarsh marked this pull request as ready for review February 19, 2024 21:26
@charliermarsh charliermarsh marked this pull request as draft February 19, 2024 21:45
@charliermarsh charliermarsh marked this pull request as ready for review February 19, 2024 23:13
@charliermarsh charliermarsh enabled auto-merge (squash) February 19, 2024 23:59
@charliermarsh charliermarsh merged commit 034f62b into main Feb 20, 2024
7 checks passed
@charliermarsh charliermarsh deleted the charlie/inde branch February 20, 2024 00:02
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.

--index-url from requirements.txt is ignored
1 participant