Open sean-au opened 2 years ago
I think it would make sense for hugo-installer to cache downloaded Hugo versions in the user's cache directory (~/.cache/
on Linux; ~/Library/Caches
on macOS; %LocalAppData%
on Windows). See hvm and Go's os.UserCacheDir
for inspiration.
Is it possible to cache the download of the hugo exec so if another project downloads the same version, it will work while offline?
npm seems to operate like this