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

feat: Support channel mirrors #931

Closed
wants to merge 0 commits into from
Closed

Conversation

wolfv
Copy link
Member

@wolfv wolfv commented Mar 7, 2024

No description provided.

@ruben-arts ruben-arts changed the title [wip] handle mirrors [skip ci] feat: Support channel mirrors Mar 8, 2024
@pavelzw
Copy link
Contributor

pavelzw commented Mar 10, 2024

What will the pixi lockfile look like then?

Currently, it looks like this:

version: 4
environments:
  default:
    channels:
    - url: https://conda.anaconda.org/conda-forge/
    packages:
      linux-64:
      - conda: https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2
      - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2
      - conda: https://conda.anaconda.org/conda-forge/linux-64/backports.zoneinfo-0.2.1-py312h7900ff3_8.conda
      - conda: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hd590300_5.conda
      - conda: https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2023.11.17-hbcca054_0.conda
      - conda: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.40-h41732ed_0.conda

When we have multiple mirrors or even URL rewrites, will you still use this format or instead only display the channel name
and platform but not the URL?

One example could be:

version: 4
environments:
  default:
    channels:
    - conda-forge
    packages:
      linux-64:
      - conda: conda-forge/linux-64::_libgcc_mutex=0.1=conda_forge
      - conda: conda-forge/linux-64::_openmp_mutex=4.5-2=gnu
      - conda: conda-forge/linux-64::backports.zoneinfo=0.2.1=py312h7900ff3_8
      - conda: conda-forge/linux-64::bzip2=1.0.8=hd590300_5
      - conda: conda-forge/linux-64::ca-certificates=2023.11.17=hbcca054_0
      - conda: conda-forge/linux-64::ld_impl_linux-64=2.40=h41732ed_0

Since a package is uniquely defined by channel + platform + name + version + build string

@wolfv
Copy link
Member Author

wolfv commented Mar 10, 2024

I think we will keep the canonical name (for now). So we would keep https://conda.anaconda.org/conda-forge as the prefix. That's also what is replaced in the mirror so it should work well.

In the future we could come up with other ideas, though.

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.

2 participants