flathub-infra / flatpak-external-data-checker

A tool for checking if the external data used in Flatpak manifests is still up to date
GNU General Public License v2.0
115 stars 34 forks source link

Help needed: Failed to check archive cudatext/1.205.5.2.tar.gz with JSONChecker #408

Closed faveoled closed 9 months ago

faveoled commented 9 months ago

Checker file:

      - type: archive
        url: https://github.com/Alexey-T/CudaText/archive/refs/tags/1.205.5.2.tar.gz
        sha256: 0a5ce1bad9fa86a8de138e093df87a883d8740663a70330d272a7caed3c21656
        dest: src/CudaText
        x-checker-data:
          type: "json"
          url: "https://api.github.com/repos/Alexey-T/CudaText/releases/latest"
          version-query: '.tag_name | sub(\"^jq-\"; \"\")'
          url-query: '.assets[] | select(.name==\"jq-\" + $version + \".tar.gz\") | .browser_download_url'

Error:

jq: error: syntax error, unexpected INVALID_CHARACTER (Unix shell quoting issues?) at <top-level>, line 1:
.tag_name | sub(\"^jq-\"; \"\")                
jq: 1 compile error
ERROR   src.manifest: Failed to check archive cudatext/1.205.5.2.tar.gz with JSONChecker: Error running jq: Command '['jq', '-e', '.tag_name | sub(\\"^jq-\\"; \\"\\")']' returned non-zero exit status 3.

Any ideas?

wjt commented 9 months ago

I don't think you need to escape the double quotes

faveoled commented 9 months ago

Why not use the AnityaChecker? Seems a lot easier, even if introduces a few hours of delay:

Thanks, that worked