apx
apx copied to clipboard
[kinetic] apx fails to export binary when in /home
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`.
Exporting binaries/applications changed in Apx v2. I'll test it with the next version.
Doesn't work for my just installed VanillaOS I can't apx export --bin git
VanillaOS version: 22.10 all
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.