Since we are using git worktree to build sources directory tree, when sources are deletes manually (from ~./protofetch/cache), it is not possible to run protofetch fetch since the worktree already exists (the metadata). Thus, that metadata needs to also be deleted for it work again. The library does not support git worktree removal at the time this ticket was opened.
Tip: Look at fetch::fetch method
Edit: Since now we copy proto files as the actual output that is fine to delete. Only the folder inside cache with the source code errors out.
Since we are using git worktree to build sources directory tree, when sources are deletes manually (from ~./protofetch/cache), it is not possible to run protofetch fetch since the worktree already exists (the metadata). Thus, that metadata needs to also be deleted for it work again. The library does not support git worktree removal at the time this ticket was opened.
Tip: Look at fetch::fetch method
Edit: Since now we copy proto files as the actual output that is fine to delete. Only the folder inside cache with the source code errors out.