prefix-dev / pixi

Package management made easy
https://pixi.sh
BSD 3-Clause "New" or "Revised" License
3.38k stars 193 forks source link

Instructions for devcontainer don't work for global tools #2339

Open jamesmyatt opened 1 month ago

jamesmyatt commented 1 month ago

The instructions for VSCode devcontainers (https://pixi.sh/dev/ide_integration/devcontainer/) don't work for global tools, since ~/.pixi/bin isn't added to the path.

I don't think it's relevant to the basic issue, but I found this when trying to use it in Azure pipelines. I have translated it to this bash task, but then I can't use the global tools:

curl -L -o /usr/local/bin/pixi -fsSL --compressed "https://github.com/prefix-dev/pixi/releases/download/${PIXI_VERSION}/pixi-$(uname -m)-unknown-linux-musl"
chmod +x /usr/local/bin/pixi
pixi info

However, this does work as a bash task, but I don't depending on that script:

curl -fsSL https://pixi.sh/install.sh | bash
echo "##vso[task.prependpath]/home/vsts/.pixi/bin"
jamesmyatt commented 1 month ago

BTW, there's a double -L in the curl command.