prefix.dev转发了
I contributed a small new feature to Pixi, my favourite package manager! ?? The 'project-based' workflow enabled by Pixi (prefix.dev) and uv (Astral) has been a game-changer for my developer experience. Keeping a bunch of mamba envs in mind used to be workable, but soon became unwieldy as I started developing various projects, each with multiple envs. The ability to precisely specify and reproduce envs for each project has meant I can spend less time figuring out *how* to go about performing development tasks, and more time actually developing! There are some development tasks where more than just project-defined envs are useful, though—what if I want to try to reproduce a user's bug report in a 'throwaway'/ephemeral env (perhaps trying out various combinations of dependencies)? Pixi solves this with `pixi exec`—just specify the package 'specs' you need and a command (often `ipython` for reproducing bug reports), and Pixi will run the command in a cached env. I did find one thing missing though: I wanted an easy way to see which package versions were installed in the env, since e.g. the behaviour of scikit-learn can vary based on the versions of dependencies like NumPy and Scipy. This is particularly helpful when trying to figure out why you *can't* reproduce a bug that others can reproduce. So, I opened a PR to add the `--list` option to `pixi exec`! You can pass `--list` by itself to see all packages, or filter the packages with a regex. This feature should be available in the next minor release of Pixi—thanks to Julian Hofer for a super speedy and friendly review process! This was my first significant contribution written in Rust ??, so even though all of the difficult work had already been done in the source of `pixi global --list`, I was still pretty happy when everything compiled and worked!