I am getting appstream-failed-validation error despite it passing validation

Aug 19, 2025 Closed
A

I am preparing an app for flathub submission and here is my metainfo file screen-orientation-manager/io.github.archisman_panigrahi.screen-orientation-manager.metainfo.xml at screen-orientation-manager · archisman-panigrahi/screen-orientation-manager · GitHub

When I try to validate manually, my metainfo file passes validation.

$ flatpak run --command=flatpak-builder-lint org.flatpak.Builder appstream io.github.archisman_panigrahi.screen-orientation-manager.metainfo.xml
✔ Validation was successful.

However, after building, when I run flatpak run --command=flatpak-builder-lint org.flatpak.Builder repo repo, it shows

{
    "errors": [
        "appstream-failed-validation"
    ],
    "appstream": [
        "W: io.github.archisman_panigrahi.screen-orientation-manager:24: description-spurious-text",
        "W: io.github.archisman_panigrahi.screen-orientation-manager:22: description-no-valid-content"
    ],
    "info": [
        "appstream-failed-validation: Metainfo file /tmp/tmp55xe79zc/metainfo/io.github.archisman_panigrahi.screen-orientation-manager.metainfo.xml has failed validation. Please see the errors in appstream block"
    ],
    "message": "See https://docs.flathub.org/linter for details and exceptions"
}

How to debug this?

A

It seems that the source of the error was the following: I made changes to the metainfo in my computer to fix the issue, but did not push them, and flatpak builder was building from the remote git repo where the issue was not patched.