summaryrefslogtreecommitdiff
path: root/pkgs/build-support/fetchgit
AgeCommit message (Collapse)Author
2026-03-02tests.fetchgit.withGitConfig: fix buildColin
2026-02-19tests.fetchgit: pass `system` and the existing `config`Emily
2026-02-07fetchgit: remove unused argumentHigherOrderLogic
2025-12-24nix-prefetch-git: restore the tag-related clone flags when leaving .gitYueh-Shun Li
When leaveDotGit == true, restore the cloning behaviour before commit 7e085677f996 ("nix-prefetch-git: dont't fetch tags when deep clone unless leaving .git") to preserve the fragile hashes of .git sources. Clean up fetchTagsCompat, as fetchTagsCompat is no longer needed after restoring the old tag-fetching flags.
2025-12-23nix-prefetch-git: Name FETCHED_HEAD "$ref" only for refs/tags/*Yueh-Shun Li
2025-12-17fetchgit: take `postCheckout` to allow gathering revision and commit ↵Philip Taron
metadata without leaving `.git` (#465497)
2025-12-17tests.fetchgit: add submodule-revision-countYueh-Shun Li
2025-12-17nix-prefetch-git: dont't fetch tags when deep clone unless leaving .gitYueh-Shun Li
Co-authored-by: Adam Dinwoodie <adam@dinwoodie.org>
2025-12-17nix-prefetch-git: fetch the fetching tag for NIX_PREFETCH_GIT_CHECKOUT_HOOKYueh-Shun Li
Co-authored-by: Adam Dinwoodie <adam@dinwoodie.org>
2025-12-11fetchurl, fetchgit: use `__structuredAttrs = true` and pass `curlOptsList` ↵Yueh-Shun Li
and `sparseCheckout` as lists (#464475)
2025-12-10fetchgit: reference hash from finalAttrs.hashYueh-Shun Li
2025-12-09fetchgit: use __structuredAttrs = trueYueh-Shun Li
2025-12-09tests.fetchgit: add simple-tagYueh-Shun Li
2025-12-09fetchgit: take postCheckout to allow collecting revision without leaving .gitYueh-Shun Li
2025-12-08fetchgit: adjust format for sparseCheckout defaultYueh-Shun Li
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-12-04fetchgit: sparseCheckout: reference depending attributes from finalAttrsYueh-Shun Li
2025-12-04fetchgit: format expression after eliminating global assertionsYueh-Shun Li
2025-12-04fetchgit: move sparseCheckout type check down to sparseCheckoutTextYueh-Shun Li
2025-12-04fetchgit: default sparseCheckout to null and handle the default internallyYueh-Shun Li
2025-12-04fetchgit: keep sparseCheckout a list and stringify as sparseCheckoutTextYueh-Shun Li
2025-12-04fetchgit: nonConeMode: reference depending attributes from finalAttrsYueh-Shun Li
2025-12-04fetchgit: default nonConeMode to null and manage its default internallyYueh-Shun Li
2025-11-17fetchgit: default argument leaveDotGit to nullYueh-Shun Li
2025-11-16fetchgit: move assertions down to argument valuesYueh-Shun Li
2025-11-03fetchgit: expose getRevWithTag as fetchgit.getRevWithTagYueh-Shun Li
2025-11-03fetchgit: pass rev as revCustom and make overridableYueh-Shun Li
2025-11-03fetchgit: pass tag directly and make overridableYueh-Shun Li
2025-11-03fetchgit: abstract and simplify revWithTagYueh-Shun Li
2025-11-03fetchgit: take derivationArgsYueh-Shun Li
2025-10-28fetchurl, fetchzip, fetchgit: format Nix expression after lib.extendMkDerivationYueh-Shun Li
2025-10-28fetchgit: restructure with lib.extendMkDerivation (not formatted)Yueh-Shun Li
2025-10-28fetchgit: take passthruYueh-Shun Li
2025-10-18Revert "stdenv: pURL implementation (#421125)"d068328
This reverts commit 54271156702fc3a3f5d156df567a2a4a274bac6b, reversing changes made to 88ee2ac331edc3ce9f9df92aaf824592473ed868.
2025-10-17stdenv: pURL implementation (#421125)Arian van Putten
2025-10-14stdenv: pURL review suggestions - replace mergeHans Joachim Kliemeck
2025-10-14stdenv: pURL - fix chaining case (github&submodules using fetchgit)Hans Joachim Kliemeck
2025-10-03stdenv: pURL implementationh0nIg
2025-09-29config: add a `gitConfig`/`gitConfigFile` optionAlexander Bantyev
Adds a `gitConfig` option (and `gitConfigFile`), to set a default `gitConfigFile` argument for `fetchgit`.
2025-09-29fetchgit: add a `gitConfigFile` argumentAlexander Bantyev
Passing a `gitConfigFile` argument as a string allows setting a custom git config (as `$GIT_CONFIG_GLOBAL`). The most obvious use is to override URLs with custom mirrors, but others are possible too.
2025-09-24nix-prefetch-git: Add regression test for avoiding fetching cached pathsSilvan Mosberger
2025-09-24nix-prefetch-git: add --no-add-path argumentAlexander Bantyev
Adds a new argument to `nix-prefetch-git`: `--no-add-path`. It disables adding the path to the store. It is useful when working with a read-only store.
2025-08-10fetchgit: Add rootDir argument (#427165)Philip Taron
2025-08-08fetchgit: Add rootDir argumentYuriy Taraday
With this argument fetchgit will make a subdirectory of the Git repository a root of the resulting store path. This is helpful for dealing with monorepos where many projects are in separate directories and don't need a new source hash every time the monorepo is updated. Commit hash is removed from the name of the derivation to prevent it from changing the store path when nothing in the subdirectory changes.
2025-08-08nix-prefetch-git: Add --root-dir argumentYuriy Taraday
With this argument nix-prefetch-git will make a subdirectory of the Git repository a root of the resulting store path. This is helpful for dealing with monorepos where many projects are in separate directories and don't need a new source hash every time the monorepo is updated. The corresponding fetchgit change follows.
2025-07-25tor: add tor.proxyHook (#426763)Philip Taron
2025-07-24tor: add tor.proxyHookRyan Hendrickson
tor.proxyHook is a setup hook intended for use with HTTP-based fetchers, enabling them to download from .onion addresses using Tor as a proxy.
2025-07-24treewide: run nixfmt 1.0.0Wolfgang Walther
2025-07-16fetchgit: pass --checkout when fetching submodulesJared Baur
For projects that have `submodule.$name.update` set to something other than the default value of "checkout", this change will ensure those submodules are fetched as well.
2025-06-10lib, treewide: introduce `repoRevToName` and use it to cleanup most `fetch*` ↵lassulus
functions (#316668)
2025-06-02tests.fetchgit.fetchTags: fix flaky test by removing .git directory after ↵Philip Taron
getting tags Closes #412967