Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache downloads for offline use #44

Open
sean-au opened this issue Nov 27, 2021 · 1 comment
Open

cache downloads for offline use #44

sean-au opened this issue Nov 27, 2021 · 1 comment
Labels
discussion Indicates that this issue / PR needs to be discussed in detail before further steps can be taken type: feature Indicates a feature or enhancement

Comments

@sean-au
Copy link

sean-au commented Nov 27, 2021

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

@dominique-mueller dominique-mueller added discussion Indicates that this issue / PR needs to be discussed in detail before further steps can be taken type: feature Indicates a feature or enhancement labels Nov 29, 2021
@salim-b
Copy link

salim-b commented Sep 25, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Indicates that this issue / PR needs to be discussed in detail before further steps can be taken type: feature Indicates a feature or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants