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

"pixi add" adds unfulfillable dependency related to pre-release letter suffix #3317

Open
2 tasks done
Vuenc opened this issue Mar 10, 2025 · 0 comments
Open
2 tasks done

Comments

@Vuenc
Copy link

Vuenc commented Mar 10, 2025

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

With a new project pixi.toml:

[project]
channels = ["conda-forge"]
name = "pixi-issue-letter"
platforms = ["osx-arm64"]
version = "0.1.0"

[tasks]

[dependencies]

running

pixi add opentelemetry-instrumentation-aiohttp-client

adds the unfulfillable dependency

[dependencies]
opentelemetry-instrumentation-aiohttp-client = ">=0.51b0,<0.51a1"

Then running pixi install yields

Error:   × failed to solve the conda requirements of 'default' 'osx-arm64'
  ╰─▶ Cannot solve the request because of: No candidates were found for opentelemetry-instrumentation-aiohttp-client >=0.51b0,<0.51a1.

Changing the <0.51a1 to <0.51b1 lets the install go through.

Issue description

It seems as if the handling of pre-release alphanumeric suffixes is not handled correctly by pixi add when computing the smallest excluded version.

Expected behavior

The dependency

[dependencies]
opentelemetry-instrumentation-aiohttp-client = ">=0.51b0,<0.51b1"

should be added.

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

No branches or pull requests

1 participant