apx icon indicating copy to clipboard operation
apx copied to clipboard

[kinetic] apx fails to export binary when in /home

Open rapenne-s opened this issue 2 years ago • 3 comments
trafficstars

when $PWD is /home, apx fails to export a binary, but it works when cd-ing back to $HOME

I used --apk in my example, but it fails the same way without it.

doesn't work

solene@vanilla:/home$ apx install --apk syncthing
OK: 339 MiB in 179 packages
install.exportBinPrompt%!(EXTRA string=syncthing, string=syncthing) [y/N]: Yes

  ERROR   Error exporting binary: Failed to execute printenv: exit status 1
Error: Failed to execute printenv: exit status 1
Usage:
  apx.use install [flags]

Examples:
apx install htop git

Flags:
  -y, --assume-yes     install.assumeYes
  -f, --fix-broken     install.fixBroken
      --no-export      install.noExport
      --sideload       install.sideload
      --allow-unfree   nixinstall.allowUnfree
      --apt            flags.apt
      --aur            flags.aur
      --dnf            flags.dnf
      --apk            flags.apk
      --zypper         flags.zypper
      --xbps           flags.xbps
      --nix            flags.nix
  -n, --name string    flags.name
  -h, --help           help for install

Global Flags:
  -v, --verbose   apx.verboseFlag

  ERROR   Failed to execute printenv: exit status 1

works

solene@vanilla:/home$ cd
solene@vanilla:~$ apx install --apk syncthing
OK: 339 MiB in 179 packages
install.exportBinPrompt%!(EXTRA string=syncthing, string=syncthing) [y/N]: Yes

\E2\96\80  Exporting binary: syncthing. (1s)                                                                                             
 SUCCESS  Binary exported to `~/.local/bin/syncthing`.  

rapenne-s avatar Apr 03 '23 22:04 rapenne-s

Exporting binaries/applications changed in Apx v2. I'll test it with the next version.

mirkobrombin avatar Jun 29 '23 19:06 mirkobrombin

Doesn't work for my just installed VanillaOS I can't apx export --bin git

VanillaOS version: 22.10 all

irvinyip avatar Sep 21 '23 13:09 irvinyip

Able to reproduce today with Vanilla OS 22.10 Kinetic, which I just installed this week. I'm glad I search, since I can now work around this by changing my working directory.

More Details

Same error as reported by OP- printenv error with same details. Adding --verbose doesn't change anything. I cd'd to ~/bin and re-ran:

apx export --bin --aur --verbose ruby

and now it worked. Tried it before under / and it had failed consistently.

ccjoel avatar Apr 23 '24 14:04 ccjoel