-
Notifications
You must be signed in to change notification settings - Fork 42
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
Support package trees containing absolute symlinks #51
Comments
stow doesn't support absolute symlinks currently (aspiers/stow#51), so let's tentatively drop it from dotfiles repo.
Hi! Strangely enough, I only experienced this issue starting with I have not unrolled the whole history of this issue yet, but I don't understand what would actually be the problem with stowing and unstowing an absolute symlink. As far as I understand, unstowing means the deletion of relative symlinks. What difference does it make where this relative symlink is pointing to (I understand of course the difference between pointing to a directory vs. pointing to a file with regards to folding/unfolding, but why is it any different depending on what file type the symlink points to? To break it down, manually doing ...
... would work just fine, as would ...
... to remove the symlinks again, without breaking anything. So what is the reason for the strange special-casing of absolute symlinks? Does it have to do with And, if this change in behaviour from Thanks for listening! 🙂 |
@z1atk0 There were quite a lot of changes between these releases so I can't answer that offhand - please could you try a |
Okay, I'll try to give it a shot when I find some spare time to fool around with it. 🙂 |
The easiest way to do this would be to create a script #!/bin/sh -e
make maintainer-clean
autoreconf -iv
eval `perl -V:siteprefix`
automake --add-missing
./configure --prefix=$siteprefix
# insert your commands here to test the use case regarding absolute symlinks then: git bisect start $BAD_COMMIT $GOOD_COMMIT
git bisect run ./test.sh |
I was hit by this as well, my use-case is that I have a bunch of |
Just realised my hint above was a bit misleading; now edited to be more accurate. If you have problems running |
Okay, finally found some time to toy around with
I hope this helps in narrowing down the exact change that "broke" (although it was never intended to work, or at least not officially supported) things for me. My test case was simply trying to stow the following "package", and the above commit was where it broke:
Ie. EDIT: just in case someone else wants to test this, here's the
|
[This feature request was originally confused with #11 and reported there; moving here to stop the confusion.]
Example use case given by @dmarcoux is a Stow package containing dotfiles for
$HOME
, in which.mysql_history
,.bash_history
, and.less_history
are symlinks to/dev/null
.Currently Stow refuses to stow these absolute symlinks:
To clarify:
They're all separate issues despite appearing similar on the surface.
The text was updated successfully, but these errors were encountered: