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

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

Open
rapenne-s opened this issue Apr 3, 2023 · 3 comments
Open

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

rapenne-s opened this issue Apr 3, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@rapenne-s
Copy link

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`.  
@mirkobrombin mirkobrombin added the bug Something isn't working label Apr 4, 2023
@mirkobrombin
Copy link
Member

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

@irvinyip
Copy link

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

VanillaOS version: 22.10 all

@ccjoel
Copy link

ccjoel commented Apr 23, 2024

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.

@taukakao taukakao changed the title apx fails to export binary when in /home [kinetic] apx fails to export binary when in /home Apr 23, 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

4 participants