Open bbhtt opened 7 months ago
The solution I thought of is that it can check that if skip-arches, only-arches hold an array, if not then it is an error. Something like this json_object_get_member(obj, "only-arches") -> if (!JSON_NODE_HOLDS_ARRAY (node)) -> error
but it involves manually checking each such property.
Not sure about this entirely.
Checklist
flatpak-builder version
1.4.3
Flatpak version
1.15.6
How to reproduce
Given a manifest
building and
show-manifest
ignores that the only-arches key is improper, so it is converted towhich causes, the x86_64 build and aarch64 build files to get overwritten by one another.
Expected Behavior
It should error and fail.
Actual Behavior
Doesn't error
Additional Information