Closed roachsinai closed 6 months ago
Thanks for reporting this however you're saying you're running dotdrop from branch fix-428? Can you please try with the master branch and let me know if that bug is also there?
Hi @deadc0de6 , get same error when using master branch.
Ok, I'll look into it, thanks for testing
@roachsinai I did some refactoring on dotdrop. Can you retest it with the master branch and let me know if the bug is still here?
Hi @deadc0de6 on my test master branch fixed this issue. Thanks a lot!!!
Futher more, get below verbose if has unimported file under a directory which managed by dotdrop:
Cool! You can ignore unimported files with the ignore pattern. Do you need help?
Yeahhh, thanks a lot. Is there a doc link? And how about the modes differ
the reason is dst is windows filesystem (everything is 777).
Yes, you can either ignore completely anything that is not present in dotdrop with the global option ignore_missing_in_dotdrop
(doc is here). This option can also be set per dotfile (see here).
Or you can use patterns to match the different directory with cmpignore
(doc is here).
For example to ignore everything under snip
and watch_later
for some dotfile:
dotfiles:
d_some
dst: ~/.some
src: some
cmpignore:
- '*/snip/*'
- '*/watch_later/*'
Regarding the permission, there's currently no option to ignore those during a compare. Have you tried simply removing the chmod
entry on the dotfile? Since if on windows it's 777 anyway, there's no reason to have it in the config.
Thanks. Very helpful!
Regarding the permission, preserve remove the confirm when run dotdrop install
.
Dotdrop version (and git commit if run from source): v1.14.0 https://github.com/deadc0de6/dotdrop/tree/fix-428
Describe the bug
Get below error when run dotdrop compare:
Value of
local_path
:/home/xq/code/Git/dotfiles/dotfiles/vim/snip
.Value of
local_mode
:preserve
.Steps to Reproduce
Steps to reproduce the behavior:
Create a dotfile with content:
run
dotdrop compare -p wsl-win
The error may is
local_mode
is a python string.