Trying to build Flatpak fromGitHub

I’m trying to build Flatpak on Debian/bookworm using Meson based on the sources in the GitHub repo and the instructions in:

flatpak/CONTRIBUTING

When I cd into the repo and run:

sudo apt build-dep flatpak

I get:

Reading package lists… Done
E: You must put some ‘deb-src’ URIs in your sources.list

What am I missing?

You need to enable the source repositories on Debian. If you have the “Software and Updates” app it should have a checkbox to do that, otherwise edit /etc/apt/sources.list, copy each line and add deb-src in front of it.

Then run # apt update

See SourcesList - Debian Wiki for examples.