Skip to content

Commit 69b3019

Browse files
authored
rustPlatform.fetchCargoVendor: fetch git submodules (#356415)
2 parents fca3a12 + 58e265d commit 69b3019

File tree

3 files changed

+3
-7267
lines changed

3 files changed

+3
-7267
lines changed

pkgs/build-support/rust/fetch-cargo-vendor-util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def download_git_tree(url: str, git_sha_rev: str, out_dir: Path) -> None:
6969
tree_out_dir = out_dir / "git" / git_sha_rev
7070
eprint(f"Fetching {url}#{git_sha_rev} -> git/{git_sha_rev}")
7171

72-
cmd = ["nix-prefetch-git", "--builder", "--quiet", "--url", url, "--rev", git_sha_rev, "--out", str(tree_out_dir)]
72+
cmd = ["nix-prefetch-git", "--builder", "--quiet", "--fetch-submodules", "--url", url, "--rev", git_sha_rev, "--out", str(tree_out_dir)]
7373
subprocess.check_output(cmd)
7474

7575

0 commit comments

Comments
 (0)