Comments (1)
Hi!
Strangely enough, I only experienced this issue starting with 2.4.0
. Up to & including 2.3.1
, both stowing and unstowing of absolute symlinks has never been a problem before (and I've been using stow
since the early 1.3.x
days, almost as long as I've been using Linux itself), despite the comment in https://github.com/aspiers/stow/blob/master/lib/Stow.pm.in#L503 (which I never knew about, as it just worked as expected all those years 🤷♂️).
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 ...
ln -s ../stow/some_package/bin/actual_file /usr/local/bin/actual_file
ln -s ../stow/some_package/share/doc/package/absolute_symlink_to_somewhere /usr/local/share/doc/package/absolute_symlink_to_somewhere
ln -s ../stow/some_package/dev/package_device_node /usr/local/dev/package_device_node
ln -s ../stow/some/package/var/run/package_socket /usr/local/var/run/package_socket
... would work just fine, as would ...
rm /usr/local/bin/actual_file
rm /usr/local/share/doc/package/absolute_symlink_to_somewhere
rm /usr/local/dev/package_device_node
rm /usr/local/var/run/package_socket
... 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 stow
's complex folding/unfolding logic (which I admittedly didn't consider at all here 😇)? Are there some tricky non-obvious corner cases that I'm missing here?
And, if this change in behaviour from 2.3.1
to 2.4.0
was intentional, could you please point me to the commit that is responsible for it, so that I can keep a local diff around to revert it back to the old behaviour? 🤓
Thanks for listening! 🙂
from stow.
Related Issues (20)
- How to know that `stow` skip pointing symlink to destination since it already exists?
- make it possible to stow to a "flattened" file hierarchy (containing symlinks) HOT 2
- What changes cwd to the target directory during init of Stow? HOT 4
- Stow needs a co-maintainer HOT 1
- New files in a directory managed by stow HOT 4
- Document TeX dependency HOT 2
- nvim stow from .config HOT 6
- [[email protected]] An error is reported during the execution of self-test cases. HOT 3
- `stow --simulate` should show `--adopt` actions HOT 2
- `stow --simulate` should warn when `-v` is not specified HOT 6
- Can GNU Stow use a stow target directory that is a symbolic link? HOT 2
- Investigate ditching Stow's pre-processing phase of installation HOT 1
- ~/.stow-global-ignore doesn't work HOT 15
- .stow-local-ignore: stow does not ignore file when parent directory does not exist
- Why was the no-folding-per-pkg branch abandoned?
- Failed to install because ls HOT 1
- make install fails | installation in docker container HOT 2
- Request build flag to turn off docs creation HOT 2
- Docs build error HOT 1
- --override not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stow.