This repository has been archived by the owner on Jun 23, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
28cefd2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if
new_module_folder
contains a different module? Shouldn'ttrack.json
be checked forid
andupdate_to
at least – and if they don't match, instead of removingold_module_folder
a warning/error be thrown?28cefd2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id
(they should be unique).id
, one of them will be overwritten when generatingmodules.json
(this should not happen).28cefd2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fully agree. But if everything would always be as it should be, a check would not be needed 😉 It might be edge cases, but with the directory gone its contents are gone as well, so I'd tend on the safe side. That only one of the two would make it to the index is clear – but data gone is lost. There is no "registry" to ensure duplicates are ruled out, after all (at least not to my knowledge).
Those cases are probably very rare, so I have no "big issues" with that. Just thought I point it out 😉
28cefd2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although this is a situation that is unlikely to occur, I will still make some modifications.
If the conditions are met, move it to the
local
folder.28cefd2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Btw: I've just updated to the latest code. Got quite a shock how fast
sync
is now, amazing! 😍 Hope one doesn't hit any Github API limits with larger repos (mine is now at 82 modules) 🙈 Great work, thanks a lot!