Skip to content

symlinks broken in current Ubuntu #231

@qidydl

Description

@qidydl

homeshick link has stopped working in current Ubuntu versions. It creates symlinks with an incorrect path, e.g. in /home/david you get .file pointing to david/.homesick/repos/castle/file (so the user name is repeated incorrectly) instead of .homesick/repos/castle/file resulting in every link being broken.

Ubuntu has switched to using uutils instead of GNU coreutils, and it has a bug in dirname that causes dirname /home/david/. to return /home instead of /home/david. This impacts fs.sh line 174 where source_dir is computed using that pattern, and then everything goes off the rails.

This has theoretically already been fixed in uutils/coreutils#8911, but Ubuntu hasn't shipped the fix yet. I created an Ubuntu bug to hopefully get it fixed. I'm not sure if there's a quick or easy fix here in the meantime that might work around the problem. If nothing else, at least this is now a documented known issue.

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