Skip to content

v1 recipe and channel_sources and priority #2226

@bollwyvl

Description

@bollwyvl

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

It appears channel_sources aren't taken into account during rattler-build:

conda-forge/jupyterlite-core-feedstock#46

# recipe/conda_build_config.yaml
channel_sources:
  - conda-forge/label/jupyterlab_alpha,conda-forge/label/notebook_alpha,conda-forge

channel_targets:
  - conda-forge jupyterlite_core_alpha
# conda-forge.yml
channel_priority: disabled  # probably not needed, but...

Yields:

 ╭─ Running python test(s)
 │
 │ ╭─ Testing with default python version
 │ │ 
 │ │ Resolving test environment:
 │ │   Platform: linux-64 [__unix=0=0, __linux=6.5.0=0, __glibc=2.34=0, __archspec=1=x86_64_v4]
 │ │   Channels: 
 │ │    - file:///tmp/.tmpsQV5ka/
 │ │    - file:///home/conda/feedstock_root/build_artifacts/
 │ │    - conda-forge
 │ │   Specs:
 │ │    - jupyterlite-core-with-lab ==0.6.0a0 hd5b2252_0
 │ │    - pip
 │ │
 │ ╰─────────────────── (took 0 seconds)
 │
 ╰─────────────────── (took 0 seconds)
Error: 
  × failed to setup test environment: Cannot solve the request because of:
  │ jupyterlite-core-with-lab ==0.6.0a0 hd5b2252_0 cannot be installed because
  │ there are no viable options:
  │ └─ jupyterlite-core-with-lab 0.6.0a0 would require
  │    └─ jupyterlab >=4.4.0a2,<4.5, for which no candidates were found.
  │ The following packages are incompatible
  │ └─ jupyterlite-core-with-lab ==0.6.0a0 hd5b2252_0 cannot be installed
  │ because there are no viable options:
  │    └─ jupyterlite-core-with-lab 0.6.0a0 is excluded because due to strict
  │ channel priority not using this option from: 'file:///home/conda/
  │ feedstock_root/build_artifacts/'
  │ 
  ╰─▶ Cannot solve the request because of: jupyterlite-core-with-lab ==0.6.0a0
      hd5b2252_0 cannot be installed because there are no viable options:
      └─ jupyterlite-core-with-lab 0.6.0a0 would require
         └─ jupyterlab >=4.4.0a2,<4.5, for which no candidates were found.
      The following packages are incompatible
      └─ jupyterlite-core-with-lab ==0.6.0a0 hd5b2252_0 cannot be installed
      because there are no viable options:
         └─ jupyterlite-core-with-lab 0.6.0a0 is excluded because due to
      strict channel priority not using this option from: 'file:///home/conda/
      feedstock_root/build_artifacts/'

Installed packages

azure

Environment info

azure

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions