There is a simple project with only few of files, but huge number of dependences such as deno_std. Now, the project has updated. I need to update my local caches by running:
deno fetch -r https://my.project.host/app.js
The trouble is the deno will re-download all dependences.
If the --reload option support parameters for specifying which host or hosts need to update:
> deno fetch --reload=https://my.project.host https://my.project.host/app.js
> deno fetch \
--reload=https://my.project.host \
--reload=https://some-host.need-update.too \
https://my.project.host/app.js
We can save lots of time.
It is a good first issue in Rust.
Roughly what needs to be done:
reload CLI flag to match allow-readDenoFlags, eg. cache_blacklist, again look up example with read_whitelistcache_blacklist field to SourceFileFetcher and it's new methodSourceFileFetcher::get_source_file_async and SourceFileFetcher::fetch_remote_source_async - ie. add some URL pattern matchingThis flag should support only remote files (http/https, because local files are always fetched from disk and not cached internally).
currently working on it
Most helpful comment
currently working on it