I get the error gpg failed to sign the data even though I've followed this article and tried the steps from this stackoverflow answer but to no avail. Setting git config --global gpg.program gpg2 yields the error Cannot run gpg2: No such file or directory even though I have the package installed.
I am using Linux and vscode through flatpak. Any advice is greatly appreciated!