Closed davidsiaw closed 2 years ago
@yunshine can you help us review this PR, please?
@davidsiaw I'm sorry to ask, but since I don't have much experience with Kaiser, would you mind explaining to me how to test this PR? I've read the documentation for the migrate_dotted_config_files
method, and I can see what x.sub(%r{/\.([a-z.]+)$}, '/\1')
is doing, so the changes you've made in this PR seem fine to me. 👍🏻 However, I'm just not sure how to check that the changes to the code do what's intended. 😅 Thank you in advance!
@yunshine you are absolutely right. i will write some tests for it so you can check it better. and write a manual test procedure
@yunshine I wrote a little thing for you to manually try but I will write a test too.
This fixes the migration for config dotfiles. It is done by a oneliner that unfortunately only works in bash. We write a procedural version here that is compatible with any system that uses ruby.
You can test this manually by
~/.kaiser/config.yml
to~/.kaiser/.config.yml
ls -a ~/.kaiser
will show you no dotfiles.