Skip to content

Running tuckr add on a group with symlinks in it throws an error #77

@djsigmann

Description

@djsigmann

I have a group which contains symlinks:

/home/djsigmann/.config/dotfiles/Configs/luarocks
└── .config
    └── luarocks
        ├── config-5.1.lua -> config.lua
        ├── config-5.2.lua -> config.lua
        ├── config-5.3.lua -> config.lua
        ├── config-5.4.lua -> config.lua
        └── config.lua

Upon confirming that ~/.config/luarocks does not exist and running tuckr add luarocks, I get the following error:

Conflicts were detected. Conflicting groups won't be added until conflicts are resolved.
Not Symlinked:
	luarocks	 -> /home/djsigmann/.config/luarocks/config-5.3.lua (symlinks elsewhere)
	 -> /home/djsigmann/.config/luarocks/config-5.4.lua (symlinks elsewhere)
	 -> /home/djsigmann/.config/luarocks/config-5.2.lua (symlinks elsewhere)
	 -> /home/djsigmann/.config/luarocks/config-5.1.lua (symlinks elsewhere)

Symlinked:
	luarocks

Check `tuckr help add` to learn how to fix symlinks.

Despite the error, the group is infact deployed correctly, and ~/.config/luarocks is a symlink to ~/.config/dotfiles/Configs/luarocks/.config/luarocks.
The same behaviour occurs if a symlink within the group has an absolute target or a target outside of ~, it makes no difference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions