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
Dotfiles option doesn't work with directories #33
Comments
|
Thanks for the report! I didn't implement |
|
I got bitten by this one too when trying the new release |
|
Definitely not noise, thanks a lot @bricewge for the extra debug! Unfortunately I'm now packing for a 2 week holiday so am unlikely to have time to look at this soon, but if anyone else can make headway in my absence that would be awesome :) |
|
Apologies for not replying to the earlier report. I will try to reproduce and I'll see if I can make any headway before @aspiers returns from vacation. |
|
I was able to reproduce, thanks all for the detailed info. I think we expand the stow directory too early on; my assumption when originally implementing this was that the |
|
In the mean time, I've been using
|
|
I have this same structure, one way that works is to keep ~/dotfiles at the root of $ HOME and this command works (@lhindir):
And yes, indeed there is a bug, because in my environment if I try to pass a target it returns this same message:
|
Unfortunately the dotfiles options is currently broken for directories, see aspiers/stow#33.
|
I just came across this bug. and read through this issue and #63. It's not a dealbreaker (at least not for my use case), but it would be nice to have this feature working. Is there any ETA for this fix? |
|
Also, stow -D --dotfiles does not seem to work at all, even when files do not contain any "dot-filename" replacements. We get the to: To echo NPastorale, this would be a great feature. Thanks! |
`stow` supports the `--dotfiles` option which causes files beginning with the prefix `dot-` in the stow directory to be symlinked with a literal period character instead. This avoids the need to have hidden files in the stow directory. Unfortunately, this option is not fully working for hidden directories (see aspiers/stow#33). Hence, packages containing hidden directories remain unchanged for now. Add a README file to help with remembering how the installation works for each package.
The recent addition of the `--dotfiles` option allows me to name the files in a way so that they are not hidden by the shell. However, as noted in the README, Stow does not yet support using this option with subdirectories (see <aspiers/stow#33>), so these have not been converted to use the `dot-*` names.
|
This attempts to fix this problem: #70
I have added some unit tests and the pull requests is building in the CI system. I'm using it locally now also and seems to work. |
|
It would have been lovely to have the limitations of the --dotfiles option in the manual published/released while waiting for the fix to be pushed out |
|
It's been more than a year the bug was reported and two months since a fix has been proposed, any updates on this? |
|
Indeed. Would love to see the fix get merged. 🙏 |
|
Came across the same issue today. Would highly appreciate if the fix got merged. Also I can help noticing that it has been almost a whole year since the last commit on the master branch. Does the dev team need any help maintaining this project? |
|
Just stumbled on this bug, would be nice if the fix got released. |
See aspiers/stow#33 Until it's resolved dirs can't use dot- prefix
|
Just hit this too. Any timeline for a fix? |
|
I got bitten by this one too when use I found that ensuring the I don't know why, but it works for me. I use the latest release |
|
It would be nice to have this fixed! |
GNU Stow's `--dotfiles` feature has a problem on folder, so I use a local ignore to make it work. Ref: aspiers/stow#33
|
Thanks to @hurricanehrndz, I just made a workaround for this problem. My workaround includes a (I have a |
|
@aspiers hasn't been seen in this thread as far as I can see since 2019. Has he given up on this project or has anyone seen him active in this repo since? I see he's active on GitHub very recently though, so surely -- and hopefully -- he's just busy (for almost 4 years)? Anyone know? |
|
He is probably busy. I think this project needs a new maintainer.
…On Wed, 15 Feb 2023 at 17:20, Victor Zamanian ***@***.***> wrote:
@aspiers <https://github.com/aspiers> hasn't been seen in this thread as
far as I can see since 2019. Has he given up on this project or has anyone
seen him active in this repo since? I see he's active on GitHub very
recently though, so surely -- and hopefully -- he's just busy (for almost 4
years)? Anyone know?
—
Reply to this email directly, view it on GitHub
<#33 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJV6L7BVUNGMAYCXFE72DSTWXS7HLANCNFSM4HENOCFQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
Yes I'm extremely busy with work but definitely haven't given up on Stow - I use it every day, and still deeply care about it despite appearances. I also see all the issues and PRs and requests for help, file them into an ever-growing TODO list, and live with the constant guilt of not being a good maintainer. I think you're right - I need to find a co-maintainer. FWIW, I expect to complete two major work projects within a matter of weeks, at which point I intend to take a holiday - and one of the things I would love to do is catch up on this Stow backlog. But I'm aware I've been saying things like that for a few years now, and have so far failed to follow through, so finding a co-maintainer would protect against the current bus factor of 1. |
|
Adam please don't spend your holidays working on |
|
That's very kind of you to say @doolio - and of course you are right about the importance of rest ... but actually I would find working on Stow quite a nice and enjoyable way of relaxing, and it would remove a lot of the stress I feel from having neglected it for so long! 😆 |
This commit includes the current set of my personal dotfiles separated into stowable targets. Those .stow-local-ignore files and .dir => dot-dir symlinks are part of a workaround for the following bug: aspiers/stow#33. It's been still active at the time of making this commit.
This commit includes the current set of my personal dotfiles separated into stowable targets. Those .stow-local-ignore files and .dir => dot-dir symlinks are part of a workaround for the following bug: aspiers/stow#33. It's been still active at the time of making this commit.
This commit includes the current set of my personal dotfiles separated into stowable targets. Those .stow-local-ignore files and .dir => dot-dir symlinks are part of a workaround for the following bug: aspiers/stow#33. It's been still active at the time of making this commit.
This commit includes the current set of my personal dotfiles separated into stowable targets. Those .stow-local-ignore files and .dir => dot-dir symlinks are part of a workaround for the following bug: aspiers/stow#33. It's been still active at the time of making this commit.
I have to install something either way to manage the dotfiles (I don't want to go back to a custom shell script), and chezmoi supports a bunch of useful features, has a thriving community, and it's written in Go. Unfortunately, stow has some rough edge cases and the sole maintainer has been burnt out for a number of years. See: - https://www.chezmoi.io - aspiers/stow#33
I wanted to install everything with just one command, and having it as bash script would be too much work. The main reason behid having this structure is because some files need to be in `$HOME` like `.zshenv` and `.gitconfig` The only side effect of using stow was the organzation which I am not a fan, tried a couple of different organization like: having `.config` folder on the root, having a `stow-dir/.config` folder, also didn't wored, also I was not able to use flag `--dotfiles` and not hide my folders bebause of this [bug](aspiers/stow#33).
|
Bump.
Looking forward to tweaks for the |
|
FWIW I ended up switching to twpayne/chezmoi specifically because of this issue. It was a PIA; however it (Chezmoi) does handle things much better, especially secrets. |
This is blocked by aspiers/stow#33 I get the following error: stow: ERROR: stow_contents() called with non-directory path: .dotfiles/all/.config
The recent addition of the `--dotfiles` option allows me to name the files in a way so that they are not hidden by the shell. However, as noted in the README, Stow does not yet support using this option with subdirectories (see <aspiers/stow#33>), so these have not been converted to use the `dot-*` names.
|
Surprised to see (what seems to me) such a major issue still unresolved. I've just started playing with stow in order to manage files in my home directory and it looks like I'll either have to rename dot-* to .* or switch to a different solution. Both of which would be fairly annoying... |
I don't understand why this project isn't archived already tbh, I was in love with stow so much but the lack of maintenance force me to look another alternatives, I tried chezmoi and is completely awesome, you probably want to take a look to it. |
The |
It's directories that are the problem in my case. Mostly anyway. |
|
A real shame this still doesn’t work - any pull requests/forks that work for anyone? |
|
This project seems largely unmaintained. Consider instead: https://www.chezmoi.io/ |
Hm, I'm wondering whether this is the wrong channel to raise attention about this issue. I just sent an email to the bug-stow mailing list to make sure.
Thanks for the suggestion. According to https://www.chezmoi.io/comparison-table/, |
|
Thanks @niklaas for raising this on the mailing list.
|
|
Still having this bug :( |
Paging @jvkersch in case he has any insight.
I use
stowto manage my dotfiles. If I am trying to stow my config for zathura, I runstow --dotfiles zathurafrom~/dotfiles, which containszathura/dot-config/zathura/zathurarc. This outputs:stow: ERROR: stow_contents() called with non-directory path: dotfiles/zathura/.configI have no problem if I change the path to
zathura/.config. Furthermore,stow --dotfiles bashworks fine on the filebash/dot-bashrc. It only fails with directories.I'll freely admit I know little of the internals here, so I'm sorry if I'm just misunderstanding how to use it. But the error message makes it seem like
stowis converting the path before getting the path contents and stowing, when it should be getting the path contents, then converting the path, and finally stowing.Thanks for any insight you can provide.
The text was updated successfully, but these errors were encountered: