pkgxdev / pkgx

the last thing you’ll install

Home Page:https://pkgx.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PermissionDenied on some commands

drewbitt opened this issue · comments

❯ pkgx mpv

× unexpected error
│ PermissionDenied
│     at default (file:///Users/builder/actions-runner/_work/pkgx/pkgx/src/utils/execve.ts:19:15)
│     at default (file:///Users/builder/actions-runner/_work/pkgx/pkgx/src/modes/x.ts:39:3)
│     at eventLoopTick (ext:core/01_core.js:181:11)
│     at async default (file:///Users/builder/actions-runner/_work/pkgx/pkgx/src/app.ts:48:11)
│     at async file:///Users/builder/actions-runner/_work/pkgx/pkgx/entrypoint.ts:59:3
╰─➤ https://github.com/pkgxdev/pkgx/issues/new

mpv is not listed in the pantry but this came up when I was trying.

  • I can run new packages just fine e.g.
pkgx ruby --version
ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
  • I can pkgx install mpv and get properly notified that nothing provides mpv
  • If the package doesn't exist, I will get notified
❯ pkgx mpvaaa
× nothing provides: mpvaaa
│ we haven’t pkgd this yet. can you?
╰─➤ https://docs.pkgx.sh/pantry

So there is some third behavior happening for just mpv which is causing this. Not sure what that's supposed to be since mine doesn't work.

Info

  • pkgx 1.1.3, MacOS 14.2.1
  • Installed via brew /opt/homebrew/bin/pkgx
  • Zshrc has source <(pkgx --shellcode)
  • I do not have mpv in my PATH
  • Ran permissions fix with no luck sudo chown -R $(whoami) ~/.pkgx ~/Library/Application\ Support/pkgx ~/Library/Caches/pkgx
  • I do not have a User name builder
  • The same error occured in #840 but was not fixed here

this maybe?

% touch mpv
% pkgx mpv
× unexpected error
│ PermissionDenied
│     at default (file:///Users/builder/actions-runner/_work/pantry/pantry/builds/pkgx.sh-1.1.1+darwin/src/utils/execve.ts:19:15)
│     at default (file:///Users/builder/actions-runner/_work/pantry/pantry/builds/pkgx.sh-1.1.1+darwin/src/modes/x.ts:39:3)
│     at eventLoopTick (ext:core/01_core.js:178:11)
│     at async default (file:///Users/builder/actions-runner/_work/pantry/pantry/builds/pkgx.sh-1.1.1+darwin/src/app.ts:48:11)
│     at async file:///Users/builder/actions-runner/_work/pantry/pantry/builds/pkgx.sh-1.1.1+darwin/entrypoint.ts:59:3
╰─➤ https://github.com/pkgxdev/pkgx/issues/new
% ./mpv
zsh: permission denied: ./mpv

?

Yup. Must have mistakenly piped to a file when trying mpv. Cryptic error, hope this improves. Thanks.