pixi icon indicating copy to clipboard operation
pixi copied to clipboard

Relative paths in channels don't seem to work anymore

Open wolfv opened this issue 2 years ago • 2 comments

Checks

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

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

Reproducible example

channels = ["../output", "conda-forge"]

I used to have code like this but it doesn't work anymore

Issue description

Pixi doesn't find the relative path and tries to resolve an URL like https://conda.anaconda.org/output/.

It works with a file:// URL but then we need absolute paths.

Expected behavior

Would be great if relative paths work again (ideally relative to the pixi.toml.

wolfv avatar Sep 20 '24 21:09 wolfv

I think it should be automatically closed by release of this: https://github.com/conda/rattler/pull/873

nichtmacho avatar Sep 23 '24 13:09 nichtmacho

Back in the days, the channel was computed as relative to your current working directory. However, they should be computed as relative to the pixi.toml. I think if that is fixed as well, then we can also close #1159 :)

wolfv avatar Sep 23 '24 13:09 wolfv