Skip to content

Dotfiler not portable across Ubuntu Bash on Windows #20

@cybtachyon

Description

@cybtachyon

When running dot update, it does not properly recognize and handle existing symlinks when inside a symlinked home directory on Ubuntu Bash on Windows.

testuser@pc:~$ dot update
CANT LINK: /home/testuser/.bash_profile -> /mnt/c/Users/testuser/.dotfiles/base/.bash_profile
Traceback (most recent call last):
  File "/home/testuser/.dotfiles/bin/dot", line 43, in <module>
    arguments)
  File "/mnt/f/Users/testuser/.dotfiles/bin/lib/dot/core.py", line 441, in update
    created_links = processor(remove_actions + actions, created_links, fs)
  File "/mnt/f/Users/testuser/.dotfiles/bin/lib/dot/core.py", line 77, in processor_real
    mapping[action[0].replace('-', '_')](*action[1:])
  File "/mnt/f/Users/testuser/.dotfiles/bin/lib/dot/core.py", line 63, in link
    fs.symlink(source, target)
  File "/mnt/f/Users/testuser/.dotfiles/bin/lib/dot/real_filesystem.py", line 28, in symlink
    os_symlink(source, link_name)
OSError: [Errno 17] File exists

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions