Forgive me if this has been discussed before.
With apt repositories, we have
apt source to get source packages. This is often super convenient, because you can download the code of the thing that you are running, look at it, modify it if you want, and then rebuild / redistribute your new version. All that open source good stuff.
It’s a bit more difficult with snaps though, because there’s no way for publishers - even optionally - to provide data that would allow
snap on the system to grab the source corresponding to a given version. I’ve only been able to do so by scrabbling around on the interwebs before and trying to unerath the source.
Would the snapd team consider such a feature? Some way for snap publishers to optionally say: here is the source that I built this snap from, and then
snap providing a way of getting that onto the system for you.
I don’t know what’s best: the store being able to receive, retain and serve the code (like a Debian/RPM source package), or the snap providing a URL(-like thing, e.g. repo and commit ID/tag) and then
snap directly retrieving the code from there. With the latter you risk the source becoming unavailable for any reason I guess.