Azathothas / Toolpacks

Official (pkgforge-edge) Repo 📦📀 & The Largest Collection of Pre-Compiled (+ UPXed) Linux Static Binaries (incl. Build Scripts) & Package Manager (rust) :: https://github.com/pkgforge/soar
https://bin.pkgforge.dev/
MIT License
151 stars 16 forks source link

[Worrying] metadata.json contains nothing. #10

Closed xplshn closed 6 months ago

xplshn commented 8 months ago

Hi, just noticed that bigdl search stopped working, seems the issue is that this commit "https://github.com/Azathothas/Toolpacks/commit/9435050a617172201ee572539bcddb88e7b48707" overwrote the metadata.json with an empty file...

xplshn commented 7 months ago

It seems the metadata.json in Metis' repo is also periodically overwritten with an empty file.

Azathothas commented 7 months ago

As stated in https://github.com/Azathothas/Toolpacks/issues/7 , Hysp Metadata is a secondary source, and will be deprecated in the future. As for the main, https://bin.ajam.dev/METADATA.json , the reason you are seeing periodic unexpected changes is due to Cloudflare's Caching

wget has a flag for this : wget --no-cache curl : https://www.baeldung.com/linux/curl-without-cache

And whatever lib/module you are using, there will likely be similar options to configure it. Or you could use a ?$RANDOM when you construct the url, which will ensure you aren't fetching stale/cached content

xplshn commented 7 months ago

I meant, not that one, the one with descriptions, it is actively refreshed however, it is periodically overwritten with garbage

xplshn commented 7 months ago

I have modified the affected parts of my code, but this doesn't help, it only adds 24 lines of code, that don't really fix the problem. If only the metadata.json file wasn't periodically overwritten with garbage things would be fine.

Doesn't seem like a problem of caching, since the file in your repo is also overwritten with an empty file sometimes, so, no matter what I do, can't get around it by myself

xplshn commented 6 months ago

it seems this is fixed? I don't know what fixed it. Closing for now.