conda / rattler

Rust crates to work with the Conda ecosystem.
BSD 3-Clause "New" or "Revised" License
264 stars 55 forks source link

Add functionality to check whether a set of `PackageRecord`s is a valid solution or not #906

Open pavelzw opened 2 weeks ago

pavelzw commented 2 weeks ago

Checklist

What is the idea?

We would like to add a check in pixi-pack pack --inject ... (i.e. adding a package on top of a locked pixi env) that the injected packages form a valid environment.

Why is this needed?

No response

What should happen?

No response

Additional Context

https://github.com/Quantco/pixi-pack/issues/48

baszalmstra commented 2 weeks ago

I think we could even implement this only for RepoDataRecord (a prefix record contains that)

pavelzw commented 2 weeks ago

We implemented this function in pixi-pack: https://github.com/Quantco/pixi-pack/blob/daf227ef11be67a109f5168b0d6d3c3fad3ca913/src/pack.rs#L409

@baszalmstra do you think it makes sense to upstream it here?

baszalmstra commented 2 weeks ago

Yeah for sure!