Open jarkkojs opened 1 year ago
If I'm understanding correctly, this is only happening if you do:
$ cargo install zellij
$ rm ~/.cargo/bin/zellij
$ cargo uninstall zellij
Is that correct?
A benefit I see to this is it would allow someone to clean up their install-metadata
I can see us being extra cautious at removing any files if one of the expected files isn't there. Deleting is inherently destructive and caution should be exercised.
The part that isn't to clear to me though is what the use case is where this would happen enough (or even once) for this to be noticeable.
I think it makes sense to add something like cargo uninstall --force/-f
for cases like this. I got this error trying to clean some unused packages, so deleting the metadata and leftover dirs would make sense in that case.
Problem
This transcript emphasizes the problem:
Why is exiting empty file better than non-existing file? Since cargo does not care of the contents, why is it logical to fail ENOENT case?
Steps
No response
Possible Solution(s)
Change error to warning and proceed on removing the meta-data.
Notes
No response
Version
No response