You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 #4423 for more information on submodules and flakes).
The 3rd command will probably fail in the compilation step of the program, this is fine. Is expected. What it I didn't expect was that when I try to run the same command without cloning the repo first, 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' and nix 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.
I previously posted this issue on the incorrect repository (NixOS/nixpkgs#332073). Still they were kind enough to answer my questions and suggest using: nix run 'git+https://github.com/ElrohirGT/Gr-ficasComputador?submodules=1#hornystein'.
That command works! But it's unintuitive really, ideally it should work with the github: syntax too!
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 #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: