babarot / afx

📦 Package manager for CLI
https://babarot.me/afx/
MIT License
150 stars 6 forks source link

Sometime afx hangs when installing neovim #4

Closed babarot closed 2 years ago

babarot commented 2 years ago

WHAT

Sometimes when I install neovim, afx hangs and cannot cancel it with Ctrl-C. I put debug message:

$ AFX_LOG=debug afx install
2022/02/13 11:59:22 [INFO] afx version: unset
2022/02/13 11:59:22 [INFO] Go runtime version: go1.17.6
2022/02/13 11:59:22 [INFO] Build tag/SHA: unset/unset
2022/02/13 11:59:22 [INFO] CLI args: []string{"afx", "install"}
2022/02/13 11:59:22 [DEBUG] mkdir /Users/babarot/.afx
2022/02/13 11:59:22 [DEBUG] mkdir /Users/babarot/bin
2022/02/13 11:59:22 [DEBUG] (install): start to run each pkg.Install()
2022/02/13 11:59:22 [DEBUG] assets: []string{"nvim-linux64.tar.gz", "nvim-linux64.tar.gz.sha256sum", "nvim-macos.tar.gz", "nvim-macos.tar.gz.sha256sum", "nvim-win64.zip", "nvim-win64.zip.sha256sum", "nvim.appimage", "nvim.appimage.sha256sum", "nvim.appimage.zsync", "nvim.appimage.zsync.sha256sum"}
2022/02/13 11:59:22 [DEBUG] assets filter: filtered: []string{"nvim-linux64.tar.gz", "nvim-macos.tar.gz", "nvim-win64.zip", "nvim.appimage", "nvim.appimage.zsync"}
2022/02/13 11:59:22 [DEBUG] assets filter: filtered: []string{"nvim-macos.tar.gz"}
2022/02/13 11:59:25 [ERROR] failed to unarchive nvim: reading file in tar archive: /Users/babarot/.afx/github.com/neovim/neovim/nvim-osx64/libs/libiconv.2.dylib: creating new file: open /Users/babarot/.afx/github.com/neovim/neovim/nvim-osx64/libs/libiconv.2.dylib: permission denied
^C^C^C
babarot commented 2 years ago

These packages are also having similar issues (just hanging but permission denied message has not been appeared)

All of them or which one (I commented out them then this hanging behavior is gone). I put the all yaml code below:

github:
- name: open-policy-agent/opa
  description: An open source, general-purpose policy engine.
  owner: open-policy-agent
  repo: opa
  branch: master
  command:
    link:
    - from: opa
      to: opa
  release:
    name: opa
    tag: v0.16.2
- name: wercher/stern
  description: Multi pod and container log tailing for Kubernetes
  owner: wercker
  repo: stern
  release:
    name: stern
    tag: 1.11.0
- name: kubernetes-sigs/kustomize
  description: Customization of kubernetes YAML configurations
  owner: kubernetes-sigs
  repo: kustomize
  release:
    name: kustomize
    tag: kustomize/v3.5.4
babarot commented 2 years ago

Recently this behavior doesn't happen. So closing for now