espanso / hub

The official Espanso's package repository
MIT License
54 stars 125 forks source link

flutter-snippets doesn't show in Espanso Hub #114

Open smeech opened 2 months ago

smeech commented 2 months ago

https://hub.espanso.org/calc-macos, the page linked to from the topmost item in https://hub.espanso.org/search?t=math just shows a blank page rather than the package page like the rest I have viewed.

smeech commented 1 month ago

Following my recent interventions flutter-snippets also doesn't have a page either. Is it possible to reindex the hub?

AucaCoyan commented 3 weeks ago

Is it possible to reindex the hub?

Mmmm I don't know... possibly, but I need to investigate how

smeech commented 3 weeks ago

Maybe @arabello can help? He's done most of the recent espanso/hub-frontend merges.

arabello commented 3 weeks ago

Hi guys, I gave it a quick look. My findings:

I need more time to investigate both issues, I'll do it during the weekend and get back to you

smeech commented 3 weeks ago

Thank you.

arabello commented 2 weeks ago

For the flutter-snippets issue there was an inconsistency (I am not sure how) between #19 #117 #118 that causes the released hub's package_index.json to miss the flutter-snippets entry even if the package is present in the hub (files with manifest). The hub-frontend consequentially was built with no flutter-snippets page as it follows directly the package_index.json content.

The fastest mitigation is to locally run the update_index routine forcing the publishing (env var PUBLISH=true). Permissions might be required to consent the gh release upload command. WDYT? I can give it a try.

Note that the index update routine is launched only if there are missing packages between the released ones and the hub. This is why the last PR didn't trigger the index update. It might be considered to change the logic and let it update everytime as it should have idempotent result.

smeech commented 2 weeks ago

A reindex is the obvious thing to try, to force the hub to align with the package repo. There could be other packages with blank pages anyway - calc-macos was just the one I came across.

"idempotent" is a new word for me!

arabello commented 2 weeks ago

I don't have write permission to release the new package_index.json. Maybe @AucaCoyan can help?

arabello commented 2 weeks ago

The calc-macos issue was investigated and tracked at https://github.com/espanso/hub-frontend/issues/43