Improvement ideas for pixi global trampolines #2654
Labels
⏩ performance
An issue related to performance
✨ enhancement
Feature request
👋 good first issue
Good for newcomers
We've implemented a Trampoline for the
pixi global
executables exposure.What is a trampoline
A trampoline is an executable will set the path and start the actual executable in the conda environment it was coming from. This done because we can't just run any binary in the environment without activating it.
pixi global install pixi-pack
will create the following file structure for you:Interesting here is that the
.pixi/bin/pixi-pack
is a hardlink to the.pixi/bin/trampoline_configuration/trampoline_bin
and that binary will read it's own file name and find the.json
file that has the same name in thetrampoline_configuration
.This allows the trampoline to execute the correct file when the user calls for it. The configuration tells the trampoline which file it needs to actually run and which
PATH
it should use. :Improvement ideas
pixi_tramoline
is put in its own crate in thepixi/crates
folder. But it's not part of the workspace, so it should be in the root of the repository.miette
is more than this binary needs.The text was updated successfully, but these errors were encountered: