How to generate fossinfo.xml from snapcraft.yaml stage-packages

Hello,

as an app developer it is required to provide a fossinfo.xml with the app code. Most apps will probably have some kind of apt dependencies defined in the snapcraft.yaml as stage-packages (e.g. for the datalayer). I was wondering if someone already came up with a script or other to generate parts of the fossinfo.xml based on the dependencies being installed through stage-packages? stage-packages (and their dependencies) seem to be available as debian packages at some point during the snapping process and all the required information could (hopefully) be gathered from there.

Thank you and kindest regards,

Fabian

1 reply