askalono icon indicating copy to clipboard operation
askalono copied to clipboard

Have a separate repo with just the cache?

Open hoijui opened this issue 2 years ago • 1 comments

How I got here

(You may safely skip this, I just include it because I imagine, many people will come here this way, and it is a way of confusion, which could possibly be improved)

I was looking for something exactly what askalando does (THANK YOU! already, here!). Trying to get started, I looked at at the example, and read the thing about this taking 20s to run. By coincidence, I also found the onefetch at almost the same time as your library, as it can do the same thing .. and it turns out it uses your library. Looking at its code for inspiration, I see that it loads data from a file called cache.bin.zstd. Looking at the version history, I see that they just commit this file as-is into their repo, with no info where it comes from. Which brings me to the question:

Where is cache.bin.zstd/How do I generate it?

I imagine, that it makes most sense to put only this file int a separate repo. That repo could then be used as a git submodule by anyone using your library, and subsequently they could include the while cache into their binary, if they which, or ship it alongside it. I imagine that this could be done with a scheduled CI script (e.g. running once a week), that fetches the SPDX repo, and if there was a new release (or releases), rebuild the cache and commit it to the cache-only-repo. I did something very similar, also based on the SPDX licenses repo as the source, here: https://github.com/hoijui/SPDX-identifiers-generator

hoijui avatar Dec 04 '21 10:12 hoijui

I don't think it's being used. See here: https://github.com/jpeddicord/askalono/issues/89

amznpurple avatar Sep 07 '22 19:09 amznpurple