Skip to content

Channel priority is not forced on direct dependencies #1928

@ruben-arts

Description

@ruben-arts

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

[workspace]
channels = ["https://prefix.dev/ruben-arts", "conda-forge"]
platforms = ["osx-arm64"]

[dependencies]
rattler-build = ">=0.53.0,<0.55"

Gets me rattler-build from conda-forge, but the channel priority tells pixi to get it from the ruben-arts channel. Which only has the 0.52.0 version.

[workspace]
channels = ["https://prefix.dev/ruben-arts", "conda-forge"]
platforms = ["osx-arm64"]

[dependencies]
rattler-build = ">=0.52.0,<0.55"

This gets it from my channel like expected.

[workspace]
channels = ["https://prefix.dev/ruben-arts", "conda-forge"]
channel-priority = "disabled"
platforms = ["osx-arm64"]

[dependencies]
rattler-build = ">=0.52.0,<0.55"

This gets me the latest version from conda-forge which also makes sense.

Additional Context

I guess this broke with the repodata gateway changes, as I'm pretty sure this used to behave differently before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions