Closed RayZ0rr closed 2 years ago
Thanks for reporting this however I was unable to reproduce the issue.
What command are you running through dotdrop -p Arch imported
? I tried with import
and update
but was able to reproduce. Can you double check and give me more info on which command triggers the bug.
Thanks!
Sorry, for lack of clarification. I will put detailed steps here again.
tar -xzf dotdroptest.tar.gz
in home folder :
dotdroptest.tar.gz~/dotdroptest
folder dotdrop -p Arch import imported
~/dotdroptest/config.yaml
before import command above:
config:
dotpath: dotfiles
dotfiles:
f_test1:
src: dotdroptest/test1
dst: ~/dotdroptest/test1
f_imported:
src: dotdroptest/imported
dst: ~/dotdroptest/imported
profiles:
Arch:
dotfiles:
- f_test1
import:
- dotfiles.yaml
~/dotdroptest/config.yaml
after import command:
config:
dotpath: dotfiles
dotfiles:
f_test1:
src: dotdroptest/test1
dst: ~/dotdroptest/test1
f_imported:
src: dotdroptest/imported
dst: ~/dotdroptest/imported
profiles:
Arch:
dotfiles:
- f_test1
- f_imported
import:
- dotfiles.yaml
Ok got it, I was able to reproduce and it's indeed a bug. Sorry for that, I'll fix it. Thanks for your patience
A fix has been pushed in the master branch and will be part of the next release. Thanks for submitting the bug report!
@RayZ0rr this is now available in version v1.9.0
Dotdrop version (and git commit if run from source): v0.xxx Using dotdrop: as a submodule, from pypi, '...' Using from AUR
Describe the bug
When using the
imoprt
feature as mentioned here](https://dotdrop.readthedocs.io/en/latest/config-details/#profile-import-entry), duplicate entries are added toprofile - dotfiles
section.Steps to Reproduce
Steps to reproduce the behavior:
tar -xzf dotdroptest.tar.gz
in home folder : dotdroptest.tar.gz or create the following config files in$HOME/dotdroptest
config.yaml
dotfiles.yaml
dotdrop -p Arch imported
config.yaml
. It will becomeExpected behavior
Duplicate entries are not added.