arkmq-org / arkmq-org/markdown-runner

Add the ability to cache large downloads

Open
#9 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

We can enable caching for bash chunks.
The idea would be:

- if `cache=true`
- hash the content of the chunk
- get the folder in which it executed and create a tar archive
- when encountering a same chunk having a similar hash
- restore the archive in the directory before executing the chunk

options with wget can then be used to ignore already downloaded files

cache directory can be in `~/.cache/markdown-runner`

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names bash chunks, the cache=true option, and ~/.cache/markdown-runner but no files, tests, or entry points. Start by locating chunk execution and option handling, then determine how hashing, tar archives, and restoration should be tested; done means repeated matching chunks reuse cached downloads without breaking execution.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, go
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.