Grouping these two issues together as they're kinda similar.
The -sources jar for the platform releases (eg. -fabric, -forge, etc.) only contain the sources for that platform, and don't contain the sources for the common elements.
If you add the common 'platform', then it will not be remapped by fabric-loom. This is because there is no fabric.mod.json. The fix I have seen used by other mods for this is to include a dummy fabric.mod.json which is never included in the platform jars.
As per discord, this is not something not planned to be fixed, as this happens only with Yarn and should be fixed on Looms side, not by providing hacks with dummy jsons.
Grouping these two issues together as they're kinda similar.
-sources
jar for the platform releases (eg.-fabric
,-forge
, etc.) only contain the sources for that platform, and don't contain the sources for the common elements.fabric.mod.json
. The fix I have seen used by other mods for this is to include a dummyfabric.mod.json
which is never included in the platform jars.