unsupported argument 'fetchSubmodules' to 'fetchGit'
See original GitHub issueI’m specifying a fetchGit
repository and including fetchSubmodules
let
mach-nix = import (builtins.fetchGit {
url = "https://github.com/DavHau/mach-nix/";
ref = "3.3.0";
}) {};
raylib-python-cffi = mach-nix.buildPythonPackage {
src = builtins.fetchGit {
url = "https://github.com/electronstudio/raylib-python-cffi/";
ref = "master";
rev = "a15d6e2d2ec8ce39e90c101164d460b9797e0c11";
fetchSubmodules = true;
};
};
... <snip>
I get the following error:
unsupported argument 'fetchSubmodules' to 'fetchGit', at /home/adam/Workspace/koine-py/shell.nix:28:7
I’m not sure what’s causing this, because I believe this is using the Nixpkgs builtin and not Mach-nix, and it should support “fetchSubmodules”. I’m running Nix 20.09, from what I can tell that should support fetchSubmodules without any trouble.
Any help understanding what’s going on would be appreciated.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
builtins.fetchGit doesn't fetch submodules · Issue #2151 - GitHub
It looks like the current approach with a bare repository and git fetch instead of git clone will not work because submodules require...
Read more >git submodules in fetchGit? : r/NixOS - Reddit
I saw the PR merged, but I don't seem to have the facility in the latest nix release (2.3.7) which surprises me because...
Read more >Why does git fail to fetch specific valid submodule for a given ...
Running this command after cloning (and receiving the error) solved my problem: git submodule update --force --recursive --init --remote.
Read more >`nix-build` fails because Python wants something that's ...
First, let's help with the fetchgit part in your recipe ... ERROR: Invalid command line argument: subprocess.check_output(".
Read more >retry-build-batch — AWS CLI 1.27.8 Command Reference
fetchSubmodules -> (boolean). Set to true to fetch Git submodules for your CodeBuild build project. buildspec -> (string). The buildspec file declaration to ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok thanks for clarifying.
You have to install nixUnstable. (The builtins are tied to the Nix distribution – they’re built-in 😃 )