floss-fund / portal

Portal / directory for listing, indexing, and crawling funding.json manifests
https://dir.floss.fund
GNU Affero General Public License v3.0
22 stars 6 forks source link

repository JSON does not work #2

Closed 3052 closed 1 month ago

3052 commented 1 month ago

It can be hosted on a project's or organisation's website, or a repository such as https://github.com/user/project/blob/main/funding.json

https://dir.floss.fund/submit

this is not true, as that URL is HTML and not JSON:

error parsing JSON body: parse error: syntax error near offset 6 of '<!DOCTYPE ...'

if you try this instead:

https://raw.githubusercontent.com/user/project/refs/heads/main/funding.json

you get:

entity.webpageUrl.url and manifest URL host and paths do not match. Expected entity.webpageUrl.wellKnown for provenance check at https://github.com/user/*/.well-known/funding-manifest-urls

3052 commented 1 month ago

as a workaround I just changed all the URLs in the manifest to https://raw.githubusercontent.com - probably the ".well-known/funding-manifest-urls" would work but I didn't want to mess with it