Adding Golang modules to GNOME apps

Hey folks,

I have an existing app on Flathub that utilizes the GNOME runtime as its base and is built using the Flathub build system. I’d like to add some additional modules which are written in Golang into the app’s Flatpak package.

However, I’m aware that the GNOME runtime doesn’t natively support Golang. Could you please advise on the best approach to include these modules?

See Dissent’s manifest for an example: so.libdb.dissent/so.libdb.dissent.yml at master · flathub/so.libdb.dissent · GitHub

You will need to either vendor required dependencies or generate a “submanifest” with a generator from flatpak-builder-tools.

1 Like