You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add an internal package - let's call it internal-package. This package depends on another internal package (located on org-internal-channel) called another-package. The dependency is for version >=2.
Unfortunately, another-package is also a package on conda-forge (some open source implementation) and has multiple versions, all <1.0.0.
When I run:
pixi add internal-package
it fails with this error:
Error:
× failed to fetch another-package-0.81.1-hede6621_0.conda
╰─▶ HTTP status client error (404 Not Found) for url (https://***/api/conda/conda-forge/noarch/another-package-0.81.1-hede6621_0.conda)
However, when I explicitly tells it to install another-package>=2 it works:
pixi add internal-package "another-package>=2"
Issue description
Notes
There are 2 more additional solutions:
settings channel-priority = "disabled" works, but according to the docs it's not recommended.
instead of defining the version (>=2), explicitly installing from the internal channel:
Despite the solutions I introduced, it looks like a bug to me - if pixi can solve it when providing an explicit version, I'd expect it to solve it even when it's provided implicitly (as a dependency of internal-package).
* could be related - I found this discussion about flexible channel priorty #1254 - looks like it's implemented on ratller's side (and the described behavior implies that some flexibility is applied - otherwise, when I added "another-package>=2", strict channel priority would make it crash, wouldn't it?)
I'd like to hear your thoughts about it.
Expected behavior
I'd expect a more consistent behavior - either make
pixi add internal-package
pass, or make:
pixi add internal-package "another-package>=2"
fail :)
The text was updated successfully, but these errors were encountered:
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
Problem Description
I have the following pixi.toml configuration
internal-package
. This package depends on another internal package (located onorg-internal-channel
) calledanother-package
. The dependency is for version >=2.another-package
is also a package on conda-forge (some open source implementation) and has multiple versions, all <1.0.0.When I run:
it fails with this error:
However, when I explicitly tells it to install
another-package>=2
it works:Issue description
Notes
There are 2 more additional solutions:
channel-priority = "disabled"
works, but according to the docs it's not recommended.>=2
), explicitly installing from the internal channel:Conclusion
Despite the solutions I introduced, it looks like a bug to me - if pixi can solve it when providing an explicit version, I'd expect it to solve it even when it's provided implicitly (as a dependency of
internal-package
).* could be related - I found this discussion about flexible channel priorty #1254 - looks like it's implemented on ratller's side (and the described behavior implies that some flexibility is applied - otherwise, when I added
"another-package>=2"
, strict channel priority would make it crash, wouldn't it?)I'd like to hear your thoughts about it.
Expected behavior
I'd expect a more consistent behavior - either make
pass, or make:
fail :)
The text was updated successfully, but these errors were encountered: