Closed Dreamacro closed 3 years ago
Did you make sure you ran gofish init
before calling gofish install
? That command will create the cache directory for you.
@bacongobbler I already run gofish init
on my first install gofish. When I use some software like cleanmymac, the cache directory may be deleted.
So if I run gofish init
again, isn't that a bit weird?
Fair enough. There are better ways to fix this than hardcoding "if missing, create" everywhere in the codebase though. It's a really poor practice that'll become quickly unmaintainable.
I'll see about implementing lazy lookups in pkg/home.
use gofish init
for the time being.
When I upgraded go 1.16.5, I got the following output:
I tried to uninstall go, or anything I thought might help, but nothing worked.
Finally, I run
mkdir /Users/Dreamacro/Library/Caches/gofish
and everything work again. Maybe the cache directory was cleaned by another tool.So I think it should ensure directory exists before download