devcontainers-contrib / features

🐳 Extra add-in features for Devcontainers and GitHub Codespaces
MIT License
214 stars 108 forks source link

[Bug]: Tea cli has been renamed to pkgx #571

Open char8x opened 5 months ago

char8x commented 5 months ago

Feature id and version

ghcr.io/devcontainers-contrib/features/tea:1

Devcontainer base Image

No response

What happened?

When installing binary through tea, it will prompt that it cannot be executed because pkgx cannot be found.

❯ tea install node
pkgx: installed: ~/.local/bin/node

❯ node --version
/home/vscode/.local/bin/node: 3: exec: pkgx: not found

Relevant log output

❯ tea --help
usage:
  pkgx [+pkg@x.y…] <program|path> [--] [arg…]

examples:
  $ pkgx node@18 --eval 'console.log("pkgx.sh")'
  $ pkgx +openssl cargo build
  $ pkgx@latest npx@latest cowsay@latest 'fancy a cuppa?'
  $ env +bun   # https://docs.pkgx.sh/shell-integration

more:
  $ pkgx --help --verbose
  $ open https://docs.pkgx.sh

❯ cat ~/.local/bin/node
#!/bin/sh
if [ "$PKGX_UNINSTALL" != 1 ]; then
  exec pkgx +nodejs.org -- node "$@"
else
  cd "$(dirname "$0")"
  rm node && echo "uninstalled: nodejs.org" >&2
fi