Skip to content

bultins.fetchGit with submodules failes to clone branch . #13215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
ein-shved opened this issue May 16, 2025 · 0 comments
Open
2 tasks done

bultins.fetchGit with submodules failes to clone branch . #13215

ein-shved opened this issue May 16, 2025 · 0 comments
Labels

Comments

@ein-shved
Copy link

ein-shved commented May 16, 2025

Describe the bug

Trying to use builtins.fetchGit with submodules enabled to clone entire boost project. The .gitmodules file of boost said that branch of submodules are .. I suppose this is means the same branch, as head repo. The fetchGit failed on this.

Steps To Reproduce

❯ nix repl
Nix 2.28.3
Type :? for help.
nix-repl> url="https://github.com/boostorg/boost.git" 

nix-repl> builtins.fetchGit { inherit url; submodules=true; } 
error:
       … while calling the 'fetchGit' builtin
         at «string»:1:1:
            1| builtins.fetchGit { inherit url; submodules=true; }
             | ^

       … while fetching the input 'git+https://github.com/boostorg/boost.git?submodules=1'

       error: invalid Git branch/tag name '.'

Expected behavior

Successful fetching to nix store

Metadata

❯ nix-env --version
nix-env (Nix) 2.28.3

❯ git --version
git version 2.49.0

Checklist


Add 👍 to issues you find important.

@ein-shved ein-shved added the bug label May 16, 2025
@ein-shved ein-shved changed the title bultins.fetchGit with submodules failes to clone branch '.' bultins.fetchGit with submodules failes to clone branch . May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant