Enabling submodules for self doesn't work when referencing github repo from nix run
#332073
Labels
0.kind: bug
Something is broken
nix run
#332073
Describe the bug
I'm trying to make available a rust program I made using nix and flakes. The problem is when I'm inside a local copy of the repo I can enable submodules but when I try to run the same command using the github reference, it fails with the same error it gave me at the very beginning when submodules where not enabled. (See NixOS/nix#4423 for more information on submodules and flakes).
Steps To Reproduce
Steps to reproduce the behavior:
git clone --recurse-submodules -j8 https://github.com/ElrohirGT/Gr-ficasComputador
cd Gr-ficasComputador
nix run '.?submodules=1#hornystein'
nix run 'github:ElrohirGT/Gr-ficasComputador?submodules=1#hornystein'
it fails with:Which is exactly the same error I was getting before finding out you need to enable submodules in your flake command.
Expected behavior
I expected the command
nix run '.?submodules=1#hornystein'
andnix run 'github:ElrohirGT/Gr-ficasComputador?submodules=1#hornystein'
to be exactly the same in behaviour just that one uses the flake in . and the other downloads it.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: