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

fix: offline mapping should not request #1968

Merged

Conversation

nichmor
Copy link
Contributor

@nichmor nichmor commented Sep 3, 2024

fixes: #1962.

Previously , an empty map would mean that we request for all channels from prefix.dev which was wrong.

This PR aims to fix it and introduce a new state - disabled , where we do not request any mapping and just fallback to our old assumption.

crates/pypi_mapping/src/prefix_pypi_name_mapping.rs Outdated Show resolved Hide resolved
src/project/mod.rs Show resolved Hide resolved
tests/solve_group_tests.rs Outdated Show resolved Hide resolved
@tdejager
Copy link
Contributor

tdejager commented Sep 3, 2024

Nice! Good idea for the test :)

@nichmor nichmor merged commit aca1bd4 into prefix-dev:main Sep 3, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

conda-pypi-map = { } doesn't work in offline
2 participants