1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-20 23:28:26 -04:00
nix/src/libexpr
Eelco Dolstra d1165d8791
Require shallow clones to be requested explicitly
If you do a fetchTree on a Git repository, whether the result contains
a revCount attribute should not depend on whether that repository
happens to be a shallow clone or not. That would complicate caching a
lot and would be semantically messy. So applying fetchTree/fetchGit to
a shallow repository is now an error unless you pass the attribute
'shallow = true'. If 'shallow = true', we don't return revCount, even
if the repository is not actually shallow.

Note that Nix itself is not doing shallow clones at the moment. But it
could do so as an optimisation if the user specifies 'shallow = true'.

Issue #2988.
2020-03-17 22:35:29 +01:00
..
flake Unified fetcher caching system 2020-03-17 22:35:29 +01:00
primops Require shallow clones to be requested explicitly 2020-03-17 22:35:29 +01:00
attr-path.cc nix edit: Support non-derivation attributes 2020-02-07 14:22:01 +01:00
attr-path.hh nix edit: Support non-derivation attributes 2020-02-07 14:22:01 +01:00
attr-set.cc EvalState::allocAttr(): Add convenience method 2019-02-11 11:55:29 +01:00
attr-set.hh Bindings::get(): std::optional<Attr *> -> Attr * 2020-02-13 17:15:05 +01:00
common-eval-args.cc Unified fetcher caching system 2020-03-17 22:35:29 +01:00
common-eval-args.hh Fix --override-flake and add a test 2020-01-22 20:00:58 +01:00
eval-inline.hh GC_malloc -> GC_MALLOC 2018-06-12 17:49:55 +02:00
eval.cc Require shallow clones to be requested explicitly 2020-03-17 22:35:29 +01:00
eval.hh Merge remote-tracking branch 'origin/master' into flakes 2020-03-11 17:03:38 +01:00
function-trace.cc Fix coverage build 2020-01-22 21:58:07 +01:00
function-trace.hh Hide FunctionCallTrace constructor/destructor 2020-01-05 16:21:34 +01:00
get-drvs.cc nix-store -r: Handle symlinks to store paths 2019-12-16 19:11:47 +01:00
get-drvs.hh experimental/optional -> optional 2019-03-14 14:10:52 +01:00
imported-drv-to-derivation.nix Move some corepkgs into the nix binary 2020-03-11 16:57:48 +01:00
json-to-value.cc Fix build 2020-01-13 21:34:54 +01:00
json-to-value.hh Fix extra ; warnings involving MakeError 2019-11-10 11:24:47 -05:00
lexer.l simplify handling of extra '}' 2018-10-27 00:14:51 +02:00
local.mk Move call-flake.nix into libexpr 2020-03-11 17:04:51 +01:00
names.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
names.hh Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
nix-expr.pc.in pkg-config files: Use c++17 2019-03-14 14:11:12 +01:00
nixexpr.cc Fix compatibility with latest boost::format 2018-03-14 19:25:09 +01:00
nixexpr.hh Fix extra ; warnings involving MakeError 2019-11-10 11:24:47 -05:00
parser.y parseExprFromString(): Use std::string_view 2020-03-11 16:56:29 +01:00
primops.cc Merge remote-tracking branch 'origin/master' into flakes 2020-03-11 17:03:38 +01:00
primops.hh Move calling flakes into a Nix helper function (call-flake.nix) 2020-03-09 15:28:41 +01:00
symbol-table.hh Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
value-to-json.cc builtins.toJSON: fix __toString usage 2019-10-27 10:15:51 +01:00
value-to-json.hh nix path-info: Add --json flag 2016-08-29 17:29:24 +02:00
value-to-xml.cc OCD performance fix: {find,count}+insert => insert 2019-10-09 16:06:29 +02:00
value-to-xml.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00
value.hh Merge remote-tracking branch 'origin/master' into flakes 2019-12-04 00:31:09 +01:00