-
Notifications
You must be signed in to change notification settings - Fork 7
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
If .files directory in place, kody will throw error #5
Comments
Can I work on this? |
Yeah sure 😄 I think the issue is around the fact that a symlink/directory is already in place when the symlinking task is executed. I'm not 100% sure on how to replicate. This would probably be the first step in really nailing down what the issue is. I think the issue needs a slight rework to the core functionality of the symlink task in order to replicate/test. I think that it's probably ideal to be able to set where the symlinks are being set within the |
I tried replicating this problem. Are you suggesting that we'll add target path of such occurrences to .kodyrc file so that users can report the error here with that as the log file? |
Hey @prayashm
I think by default the task should overwrite without prompt but ask the user if they wish to backup all current dotfiles to a location of their choosing. My thoughts with the target path is so that it is easier to test the issue. By default, all dotfiles are going to be within |
So a to-do for this issue would be:
Should the last one be done only for scenarios where such problem occurs or always? |
Hey @prayashm Yep, I think that's correct apart from the last one. Also I'd have it so "So, where do you want your symlinks created? ($HOME)" Instead of storing a list of target symlinks, prompt the user as to whether they wish to backup their existing symlinks or dotfiles. "Do you wish to back up your current dotfiles? (Y/n) NOTE: current dotfiles will remain with additional Then instead of removing them, before creating the new symlink, rename the old one with a
This last part resolves #1 at the same time. Hopefully that makes some sense 😄 If not feel free to fire away! |
- no longer prepend dotfiles, leave to user definition - improve unhandled rejection error cases - overhaul README - improve overall logging to user for scenarios such as no task selected - overhaul symlinking task and provide backup option - fix issue where file already in place when attempting to symlink by removing/restoring backup
- no longer prepend dotfiles, leave to user definition - improve unhandled rejection error cases - overhaul README - improve overall logging to user for scenarios such as no task selected - overhaul symlinking task and provide backup option - fix issue where file already in place when attempting to symlink by removing/restoring backup
- no longer prepend dotfiles, leave to user definition - improve unhandled rejection error cases - overhaul README - improve overall logging to user for scenarios such as no task selected - overhaul symlinking task and provide backup option - fix issue where file already in place when attempting to symlink by removing/restoring backup
- no longer prepend dotfiles, leave to user definition - improve unhandled rejection error cases - overhaul README - improve overall logging to user for scenarios such as no task selected - overhaul symlinking task and provide backup option - fix issue where file already in place when attempting to symlink by removing/restoring backup
- no longer prepend dotfiles, leave to user definition - improve unhandled rejection error cases - overhaul README - improve overall logging to user for scenarios such as no task selected - overhaul symlinking task and provide backup option - fix issue where file already in place when attempting to symlink by removing/restoring backup
- no longer prepend dotfiles, leave to user definition - improve unhandled rejection error cases - overhaul README - improve overall logging to user for scenarios such as no task selected - overhaul symlinking task and provide backup option - fix issue where file already in place when attempting to symlink by removing/restoring backup
- no longer prepend dotfiles, leave to user definition - improve unhandled rejection error cases - overhaul README - improve overall logging to user for scenarios such as no task selected - overhaul symlinking task and provide backup option - fix issue where file already in place when attempting to symlink by removing/restoring backup
Issue summary
If you set up a new machine using
kody
. Unless the.files
task is set first(?) an error will be thrown about not being able tounlink
the current existing directory.Expected behavior
No errors are thrown and the symlink for the directory is set
Actual behavior
Error thrown because an existing directory is in place.
Current work-around
Manually
rm -rf
the directory within the$HOME
directory before running theDotfiles
task.Steps to reproduce
Try setting up a fresh machine using
kody
.The text was updated successfully, but these errors were encountered: