question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unsupported argument 'fetchSubmodules' to 'fetchGit'

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
adamlwgriffithscommented, Jun 23, 2021

Ok thanks for clarifying.

0reactions
bjornforcommented, Jun 23, 2021

So what do I do to utilise nixUnstable builtin’s in a nix shell?

You have to install nixUnstable. (The builtins are tied to the Nix distribution – they’re built-in 😃 )

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found