pixi icon indicating copy to clipboard operation
pixi copied to clipboard

pixi add --branch or --tag for --pypi

Open nichtmacho opened this issue 1 year ago • 1 comments

We have all the necessary structs to handle --branch and --tag with --pypi, but when running it with pixi add we always record branches as rev in the manifest.

This is because we are using pep_508::Requirement, which store git spec as a URL in this format git+https:/github.com/boltons/boltons@main, which later is decoded as a revision.

We need to find a way to augment the URL, maybe by recording that this was a branch ( git+https:/github.com/boltons/boltons@main?branch=main) or trying to use PyPiRequirement instead of pep_508::Requirement

discovered by https://github.com/prefix-dev/pixi/pull/3132

nichtmacho avatar Feb 13 '25 17:02 nichtmacho

fixed by : https://github.com/prefix-dev/pixi/issues/3133

nichtmacho avatar Feb 20 '25 10:02 nichtmacho