When I package QUsb2snes for my NixOS system, it throws an error in the fetch-sources step because of the submodules.
# ---8<--- normal git-checkout output ---8<---
From https://github.com/Skarsnik/QUsb2snes
* tag v0.7.28 -> FETCH_HEAD
Switched to a new branch 'fetchgit'
Submodule 'devices/EmuNWAccess-qt' (https://github.com/black-sliver/EmuNWAccess-qt.git) registered for path 'device>
Submodule 'extras/SNESClassicMemoryFinder/snesclassicstuff' (https://github.com/Skarsnik/snesclassicstuff.git) regi>
error: invalid key (newline): submodule.EmuNWAccess-qt
submodule.devices/EmuNWAccess-qt.url
The issue appears to be two submodules with duplicate path fields, and the default Git behavior is more forgiving than whatever Nix is doing. Since submodules should be named after the path they are put into, removing the first duplicate is the correct fix. With this patch, I can build and run QUsb2snes and connect the ALttPR Open Tracker to Retroarch.
When I package QUsb2snes for my NixOS system, it throws an error in the fetch-sources step because of the submodules.
The issue appears to be two submodules with duplicate
path
fields, and the default Git behavior is more forgiving than whatever Nix is doing. Since submodules should be named after the path they are put into, removing the first duplicate is the correct fix. With this patch, I can build and run QUsb2snes and connect the ALttPR Open Tracker to Retroarch.