dominique-mueller / hugo-installer

Installs hugo into your repository.
https://www.npmjs.com/package/hugo-installer
MIT License
21 stars 4 forks source link

cache downloads for offline use #44

Open sean-au opened 2 years ago

sean-au commented 2 years ago

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

salim-b commented 11 months 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.