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: do not always request for prefix mapping #1300

Conversation

nichmor
Copy link
Contributor

@nichmor nichmor commented Apr 30, 2024

fixes: #1048

@nichmor nichmor changed the title fix: do not request always for prefix mapping fix: do not always request for prefix mapping Apr 30, 2024
@nichmor nichmor marked this pull request as ready for review April 30, 2024 09:46
Copy link
Contributor

@ruben-arts ruben-arts left a comment

Choose a reason for hiding this comment

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

Left a question

Comment on lines 116 to 119
// we have only packages that are contained in custom mapping
// so we don't requests our prefix.mapping
// this will allow us to not fail in case of running
// under corporates firewalls
Copy link
Contributor

@ruben-arts ruben-arts Apr 30, 2024

Choose a reason for hiding this comment

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

Suggested change
// we have only packages that are contained in custom mapping
// so we don't requests our prefix.mapping
// this will allow us to not fail in case of running
// under corporates firewalls
// When all requested channels are present in the custom_mapping, we don't have to request from the prefix_mapping.
// This will avoid fetching unwanted URLs, e.g. behind corporate firewalls

Is this correctly understood from the comment?

My questions would be what happens with packages that are non pypi packages? E.g. pandoc is not in the mirrored custom mapping. Will it then still fetch the prefix mapping?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry - my comment was not 100% accurate - I meant packages channels. Let me update it

@ruben-arts ruben-arts merged commit 7e19f2b into prefix-dev:main Apr 30, 2024
24 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_name_mapping does not honor the mirror_middleware
3 participants