-
Notifications
You must be signed in to change notification settings - Fork 6
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
if ~/.config/afx
is a relative link, cannot execute the afx
command
#43
Comments
Which version did you use? Maybe this case has been fixed on v0.1.21 (#41) |
❯ ls -ld .config/afx
drwxr-xr-x 2 m m 4096 May 5 02:37 .config/afx
❯ afx --version # it works
afx version 0.1.21 (v0.1.21/054f74c)
❯ ls -la
total 24
drwxr-xr-x 6 m m 4096 May 5 02:52 .
drwxr-xr-x 24 m m 4096 May 5 02:51 ..
lrwxrwxrwx 1 m m 11 May 5 02:52 afx -> /home/m/afx
❯ afx --version
afx version 0.1.21 (v0.1.21/054f74c)
❯ ls ~/.config/afx -ld
lrwxrwxrwx 1 m m 34 May 5 02:41 /home/m/.config/afx -> ../projs/dotfiles/main/.config/afx
❯ afx --version # it not works
[ERROR]: failed to initialize afx: /home/m/.config/afx: failed to walk dir: stat ../projs/dotfiles/main/.config/afx: no such file or directory
❯ cat ~/.config/afx/main.yaml
github:
- name: stedolan/jq
description: Command-line JSON processor
owner: stedolan
repo: jq
release:
name: jq
tag: jq-1.6
command:
link:
- from: '*jq*'
to: jqm ~ |
Thank you. Now fixed on new version. |
❯ afx --version
[ERROR]: failed to initialize afx: /home/m/.config/afx: failed to walk dir: lstat /home/m/.config/afx: no such file or directory
❯ afx --version
afx version 0.1.22 (v0.1.22/4b34e4c)
❯ afx install
No packages to install
❯ afx update
No packages to update
❯ ls -ld ~/.config/afx
lrwxrwxrwx 1 m m 34 May 5 14:45 /home/m/.config/afx -> ../projs/dotfiles/main/.config/afx
❯ cat ~/.config/afx/main.yaml
github:
- name: stedolan/jq
description: Command-line JSON processor
owner: stedolan
repo: jq
release:
name: jq
tag: jq-1.6
command:
link:
- from: '*jq*'
to: jqm ~/projs/dotfiles
❯ rm ~/.config/afx -fr
❯ mkdir ~/.config/afx
❯ cp main/.config/afx/main.yaml ~/.config/afx/
❯ afx --version
afx version 0.1.22 (v0.1.22/4b34e4c)
❯ afx install
? OK to install these packages? stedolan/jq No
Cancelled |
Okay, let me think about this from the beginning...
Why should I take care of this case? What kind of motivations or backgrounds do you have? |
em...
|
I think using relative symlink is rarely in the first place. I'm getting the feeling like relative link itself is not good link and also should not support it in app. This is because generally we should use What do you think about this? |
actually, I donot familiar with golang, but, if
|
Of course we can implement this but what I wanted to say is whether I should support this case or not. Relative symbolic link is rare case, right? |
ok, It's up to you to decide |
WHAT
if
~/.config/afx
is a relative link, cannot execute theafx
commandbut, if
~/.config/afx
is a relative linkWHY
The text was updated successfully, but these errors were encountered: