anishathalye / dotbot

A tool that bootstraps your dotfiles ⚡️
MIT License
6.9k stars 287 forks source link

Globbing with single file in source directory fails #315

Closed DivineDominion closed 12 months ago

DivineDominion commented 2 years ago

Running d2f76a2, I found that this from the examples:

link:
    ~/.config/:
        glob: true
        path: config/*

... does not work when you only have one file in the config directory.

Example:

$ cd ~/.dotfiles
$ mkdir config
$ touch config/test.ini
$ ./install
...
Ambiguous action requested.
No wildcard in glob, directory use undefined: ~/.config/ -> ['config/test.ini']
Did you want to link the directory or into it?
...

As soon as you add another file, globbing works.

niraami commented 2 years ago

Duplicate of #282, but yes, it's absolutely time to fix this @anishathalye ... I've expressed my opinion in the other issue. As a side note, this issue (#284) is very similar. People just expect glob to well.. be flexible.

anishathalye commented 12 months ago

Thanks for bumping this. Dupe of #282, now fixed.