Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
char8x opened this issue Jan 19, 2024 · 0 comments
Open

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

char8x opened this issue Jan 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@char8x
Copy link

char8x commented Jan 19, 2024

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
@char8x char8x added the bug Something isn't working label Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant