Skip to content
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 not working with .config folder #73

Closed
chgallen opened this issue Jun 30, 2020 · 2 comments
Closed

dotfiles option not working with .config folder #73

chgallen opened this issue Jun 30, 2020 · 2 comments

Comments

@chgallen
Copy link

Suppose you have a package "app", which keeps its configurations settings in ~/.config/app/settings.json.

Let's say you want to use stow to keep the app's settings file in a ~/dotfiles/ directory, and create a symlink from the home folder. You want to use the --dotfiles option so that the dotfiles directory isn't full of hidden files. So you move the configuration settings to ~/dotfiles/app/dot-config/app/settings.json and then run stow --dotfiles app from the dotfiles directory to create the symlinks.

I think this should work, but it raises the error: stow: ERROR: stow_contents() called with non-directory path: dotfiles/app/.config.

Have I made an error, or is this a bug?

Reproducible code:

#!/bin/bash

# Set up
mkdir -p homedir/.config
mkdir -p homedir/dotfiles/app/dot-config/app
touch homedir/dotfiles/app/dot-config/app/settings.json
cd homedir/dotfiles

# Doesn't work!
stow --dotfiles app

# Tidy up
cd ../..
rm -r homedir
@EliaGeretto
Copy link

Duplicate of #33?

@chgallen
Copy link
Author

chgallen commented Jul 7, 2020

Yes! Oops, closing now

@chgallen chgallen closed this as completed Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants