Add feature to exclude symlinks based on where they point to #1029
Labels
effort-high
issue is likely to require >20h of effort, perhaps much more
enhancement
issue is a request for a feature, and not a defect
impact-low
low importance
wontfix
maintainers choose not to work on this, but PR would still be considered
Feature Request
I am interested in specific functionality related to symbolic links on Linux.
I do not want to follow symbolic links, I think treating them as opaquely as files is fine, except that I would like to ignore specific symbolic links, basically skip them during sync, if the target path they point to starts with a specific prefix (In my case
/nix/store
).Use Case
I am using Unison to sync parts of my user profile across my Linux-based client machines running NixOS.
Whenever you build a software package with Nix, the actual build results are stored in a global path that starts with
/nix/store
, but a symbolic link to the output is created in the current directory, so that you can find it and it does not get garbage collected.Those links are in all my git project folders, and in some other places. Since their target paths are garbage collected, with the symbolic links preventing collection, those symbolic links are always valid, except when Unison syncs them.
Alternative Solutions
The text was updated successfully, but these errors were encountered: