Skip to content

[pixi global] Unexpected error throws from the trampoline bin #5873

@chawyehsu

Description

@chawyehsu

Checks

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

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

Reproducible example

Reproducible workspace:

# prerequisites
pixi global install crun podman

# work as expected when running with the actual crun binary
~/.pixi/bin/podman --runtime ~/.pixi/envs/crun/bin/crun run --rm hello-world
# [expected container output]

# error raises when running with the trampoline wrapper
~/.pixi/bin/podman --runtime ~/.pixi/bin/crun run --rm hello-world
# [expected container output]
#
# x environment variable not found
# ERRO[0000] Removing container 030e0c980d46a6fec71cdf69ecc29354848f28076974a3a3169ae3a04f602397: cleaning up container 030e0c980d46a6fec71cdf69ecc29354848f28076974a3a3169ae3a04f602397: removing container 030e0c980d46a6fec71cdf69ecc29354848f28076974a3a3169ae3a04f602397 from runtime: `/home/user/.pixi/bin/crun delete --force 030e0c980d46a6fec71cdf69ecc29354848f28076974a3a3169ae3a04f602397` failed: exit status 1

By contrast, work as expected in pixi project

mkdir -p /tmp/test-project && cd /tmp/test-project && pixi init . && pixi add crun podman

pixi run podman --runtime /tmp/test-project/.pixi/envs/default/bin/crun run --rm hello-world
# [expected container output]

pixi info output:

System
------------
       Pixi version: 0.67.0
        TLS backend: rustls
           Platform: linux-64
   Virtual packages: __unix=0=0
                   : __linux=6.1.0=0
                   : __glibc=2.36=0
                   : __archspec=1=skylake_avx512
          Cache dir: /home/user/.cache/rattler/cache
       Auth storage: /home/user/.rattler/credentials.json
   Config locations: /home/user/.config/pixi/config.toml

Global
------------
            Bin dir: /home/user/.pixi/bin
    Environment dir: /home/user/.pixi/envs
       Manifest dir: /home/user/.pixi/manifests/pixi-global.toml

Issue description

x environment variable not found

The error throws from the trampoline bin since it is formatted by the miette crate, which is used by trampoline.

Expected behavior

There should be no error when running the mentioned command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions