jbang icon indicating copy to clipboard operation
jbang copied to clipboard

JBang Catalog for Apache Camel is missing and it has some community user alias hosted instead

Open davsclaus opened this issue 6 months ago • 2 comments

The official Apache Camel project has a jbang catalog alias named camel that we host on github at

https://github.com/apache/camel/blob/main/jbang-catalog.json

This is no longer in the app store https://www.jbang.dev/appstore/

Instead there are 5 or so community user and their copy of camel alias. It would be good to only host the official Apache Camel alias and remove the fake ones.

davsclaus avatar May 14 '25 07:05 davsclaus

we need to redo how jbang.dev/appstore is populated. atm we do a github search after jbang-catalog and it gives a result we then iterate and update the json that backs it.

It works perfectly fine everywhere except in github actions where search results gets rate limited.

Probably should move to be an explicit list ...

maxandersen avatar May 15 '25 10:05 maxandersen

Yeah a explicit list makes it more formal and not just a bunch of random scripts - some are just experiments, and if a user has something serious then they can open a ticket here, or send a PR to get on the formal app store

davsclaus avatar May 15 '25 10:05 davsclaus

Is it possible to use the camel@apache/camel catalog even without it being populated in the appstore? Thanks for any advise.

pintomic avatar Jul 01 '25 05:07 pintomic

Yes. The appstore is just an overview.

JBang looks up directly in camels own catalog file.

maxandersen avatar Jul 01 '25 06:07 maxandersen

Yes you can follow the install guide at https://camel.apache.org/manual/camel-jbang.html#_installation

davsclaus avatar Jul 02 '25 06:07 davsclaus

I seem to be missing a thing setting up the camel app. When I run the install command like advised on the camel docs:

jbang app install camel@apache/camel

I receive this error:

[jbang] [ERROR] Unknown catalog 'apache/camel'

Attached the verbose logs from the install command:

jbang-camel-install.log

Most interesting probably this line:

Caused by: java.io.FileNotFoundException: No file to download at https://raw.githubusercontent.com/apache/camel/HEAD/jbang-catalog.json. Server replied HTTP code: 404

pintomic avatar Jul 10 '25 12:07 pintomic

I dont know why it tried to download it at bitbucket, but the camel app is on github.

davsclaus avatar Jul 10 '25 12:07 davsclaus

It does that if GitHub catalog is not found.

My guess is that user is behind a firewall.

maxandersen avatar Jul 11 '25 06:07 maxandersen

You can download the file to disk, and then install it via jbang from the file.

davsclaus avatar Jul 11 '25 13:07 davsclaus