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

No METADATA.json at https://bin.ajam.dev/arm64_v8a_Android/Baseutils/ #20

Closed
xplshn opened this issue May 16, 2024 · 5 comments
Closed

Comments

@xplshn
Copy link
Contributor

xplshn commented May 16, 2024

No description provided.

@Azathothas
Copy link
Owner

Azathothas commented May 16, 2024

Currently testing. (It may be available but inaccurate at the time of you seeing)

Further, if I were to generate a tree, which format would you prefer (be easier to parse, for eg, just download this file and extract the dirnames directly)

# rclone tree --dirs-only --fast-list "r2:/bin/"
/
├── aarch64_arm64_Linux
│   └── Baseutils
├── arm64_v8a_Android
│   └── Baseutils
│       └── coreutils
├── x64_Windows
└── x86_64_Linux
    └── Baseutils
/
├── \aarch64_arm64_Linux
│   └── \aarch64_arm64_Linux\Baseutils
├── \arm64_v8a_Android
│   └── \arm64_v8a_Android\Baseutils
│       └── \arm64_v8a_Android\Baseutils\coreutils
├── \x64_Windows
└── \x86_64_Linux
    └── \x86_64_Linux\Baseutils

or if you want to rely only on the single root metadata.json
look for those whose size says -1 B

for example:

{
  "Name": "coreutils",
  "Size": "-1 B",
  "ModTime": "2024-05-16T13:35:06.225216100+05:45",
  "Source": "https://bin.ajam.dev/arm64_v8a_Android/Baseutils/coreutils"
}

Azathothas added a commit that referenced this issue May 16, 2024
Azathothas added a commit that referenced this issue May 16, 2024
@xplshn
Copy link
Contributor Author

xplshn commented May 16, 2024

BigDL uses the .json at each $ARCH and $ARCH/Baseutils. If the format is different across architectures it makes it difficult because I'd have to do jank such as checking the architecture at run-time.

@Azathothas
Copy link
Owner

Once again I urge you to only use https://bin.ajam.dev/METADATA.json
This file remains immutable and is never overwritten in case any of the other json data are bad/empty/invalid.
Only when every other source is validated, the merged METADATA.json is created.
It's likely that you experienced #10 because you keep relying on unreliable sources.
Also, I am planning to deprecate hysp's metadata entirely.
No more description etc in the short term (you may still use it, it's just that I won't be fixing any bugs or maintaining hysp aymore) , but in the long term, I plan to add a better system which would be automatable and not rely on github's api for description etc.

I would still recommend the solution of creating a repo for bigdl bigdl-registry and workout formats on your own as discussed in #18 (comment)

@xplshn
Copy link
Contributor Author

xplshn commented May 17, 2024

I would still recommend the solution of creating a repo for bigdl bigdl-registry and workout formats on your own as discussed in #18 (comment)

I don't understand Github Actions at all, if I knew how to make a GH action that runs every a few hours and adds the missing Description/Version/Updated field to METADATA.json that'd be great

EDIT: I just realized; This may be a bug not in my program...

Once again I urge you to only use https://bin.ajam.dev/METADATA.json

Because, I AM using METADATA.json. After reading all of my source code I couldn't find what caused that http request. (In termux I had an error message when trying bigdl saying: "https://bin.ajam.dev/arm64_v8a_Android/Baseutils/METADATA.json 404")

@xplshn
Copy link
Contributor Author

xplshn commented May 17, 2024

Now it works fine

@xplshn xplshn closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants