-
Notifications
You must be signed in to change notification settings - Fork 193
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
feat: switch to compressed mapping #1335
feat: switch to compressed mapping #1335
Conversation
if let Some(mapped_channel) = custom_mapping.get(&record.channel) { | ||
if let Some(mapped_name) = mapped_channel.get(record.package_record.name.as_normalized()) { | ||
if let Some(name) = mapped_name { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It think you can use an if-let chain for this: rust-lang/rust#88642. Not sure, have not used it yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is saying that ``let expressions in this position are unstable
rust-lang/rust#53667
LGTM @ruben-arts could you give it a final test tomorrow? |
Closes: #710
We add additional compressed mapping https://github.com/prefix-dev/parselmouth/blob/main/files/compressed_mapping.json, where we will store conda_name to optional pypi_name. Example: pandoc: null - this means that we know for sure that it is not a python package.
Assumption logic that conda package is python package is moved from package_identifier https://github.com/prefix-dev/pixi/pull/1335/files#diff-619b990b7fea5963a06a6665a62b7ab409a9e6fe51cc122fa285129f7518804eL46 .
This means that we always record all purls. If we don't have a conda name yet, we record a purl in this format:
pkg:pypi/boltons?source=conda-forge-mapping
this will allow us to differentiate based on user lockfile what purl was used.