about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorFilesLines
2018-06-18 Detect redirect loopsEelco Dolstra1-0/+2
Fixes #2225.
2018-06-18 Merge pull request #2234 from symphorien/esrch2Eelco Dolstra1-1/+1
libstore/gc.cc: ignore ESRCH when reading symlinks in /proc
2018-06-16 libstore/gc.cc: ignore ESRCH when reading symlinks in /procSymphorien Gibol1-1/+1
readlink is also affected by the problem fixed for regular files in c567afe355df
2018-06-14 Merge pull request #2230 from matthewbauer/patch-7Eelco Dolstra1-2/+1
Fix optimise-store.cc to skip more paths on macOS
2018-06-14 Fix optimise-store.cc to skip more paths on macOSMatthew Justin Bauer1-2/+1
I hate to make this such a large check but the lack of documentation means we really have no idea what's allowed. All of them reported so far have been within ".app/Contents" directories. That appears to be a safe starting point. However, I would not be surprised to also find more paths that are disallowed for instance in .framework or .bundle directories. Fixes #2031 Fixes #2229
2018-06-13 nix: Remove special handling of .drv filesEelco Dolstra1-22/+2
This makes 'nix copy' and 'nix path-info' work on .drv store paths. Removing special treatment of .drv files seems the most future-proof approach given the possible removal of .drv files in the future. Note that 'nix build' will still build (rather than substitute) .drv paths due to the unfortunate overloading in Store::buildPaths().
2018-06-13 hashDerivationModulo(): Handle chroot storesEelco Dolstra1-1/+1
This makes 'nix copy --to /mnt /nix/store/bla.drv' work.
2018-06-13 std::random_shuffle -> std::shuffleEelco Dolstra1-1/+3
The former is removed in C++17.
2018-06-12 Move EvalState from the stack to the heapEelco Dolstra5-46/+46
EvalState contains a few counters (e.g. nrValues) that increase quickly enough that they end up being interpreted as pointers by the garbage collector. Moving it to the heap makes them invisible to the garbage collector. This reduces the max RSS doing 100 evaluations of nixos.tests.firefox.x86_64-linux.drvPath from 455 MiB to 292 MiB. Note: ideally, allocations would be much further up in the 64-bit address space to reduce the odds of an integer being misinterpreted as a pointer. Maybe we can use some linker magic to move the .bss segment to a higher address.
2018-06-12 GC_malloc -> GC_MALLOCEelco Dolstra2-9/+3
This makes it possible to build with -DGC_DEBUG.
2018-06-12 Don't scan for roots in dynamic librariesEelco Dolstra1-0/+7
This reduces the risk of object liveness misdetection. For example, Glibc has an internal variable "mp_" that often points to a Boehm object, keeping it alive unnecessarily. Since we don't store any actual roots in global variables, we can just disable data segment scanning. With this, the max RSS doing 100 evaluations of nixos.tests.firefox.x86_64-linux.drvPath went from 718 MiB to 455 MiB.
2018-06-12 Add temporary statsEelco Dolstra2-1/+28
2018-06-12 Cache parse treesEelco Dolstra2-2/+19
This prevents EvalState::resetFileCache() from parsing everything all over again.
2018-06-12 Remove duplicate definition of allocBytes()Eelco Dolstra3-29/+15
2018-06-12 Merge pull request #2224 from serokell/getaddrinfo-preloadDaniel Peebles1-4/+8
Fix #2162: use getaddrinfo instead of curl to preload NSS
2018-06-12 Fix #2162: use getaddrinfo instead of curl to preload NSSYorick van Pelt1-4/+8
2018-06-11 Merge pull request #2223 from symphorien/esrchEelco Dolstra1-10/+13
libstore/gc.cc: ignore ESRCH when reading /proc
2018-06-11 libstore/gc.cc: ignore ESRCH when reading /procSymphorien Gibol1-10/+13
If a process disappears between the time /proc/[pid]/maps is opened and the time it is read, the read() syscall will return ESRCH. This should be ignored.
2018-06-11 Merge pull request #2211 from unsatcore/masterEelco Dolstra2-6/+4
tests: more robust check for user namespaces availability (canUseSand…
2018-06-10 Merge pull request #2220 from 7c6f434c/doc-floatsShea Levy1-2/+1
manual: builtins.fromJSON: remove the claim that floats are not allowed
2018-06-10 manual: builtins.fromJSON: remove the claim that floats are not allowedMichael Raskin1-2/+1
floating-point numbers are supported now, including the fromJSON builtin. Reported on IRC by inquisitiv3
2018-06-08 pr-2211: cleanupAleksandr Pashkov1-1/+1
2018-06-08 Merge pull request #2215 from AmineChikhaoui/s3-multipart-debugEelco Dolstra1-1/+1
use debug instead of printTalkative to avoid spamming hydra queue-runner
2018-06-08 use debug instead of printTalkative to avoid spamming hydra queueAmineChikhaoui1-1/+1
runner logs.
2018-06-07 pr-2211: cleanupAleksandr Pashkov1-1/+1
2018-06-06 Merge pull request #2212 from asymmetric/patch-2Eelco Dolstra1-2/+2
Dockerfile: 2.0.4
2018-06-06 Dockerfile: 2.0.4Lorenzo Manacorda1-2/+2
2018-06-06 tests: more robust check for user namespaces availability (canUseSandbox)Aleksandr Pashkov2-6/+4
Issue https://github.com/NixOS/nix/issues/2165
2018-06-05 Don't require --fallback to recover from disappeared binary cache NARsEelco Dolstra4-16/+40
2018-06-05 Handle HTTP 410 Gone errorsEelco Dolstra1-1/+1
2018-06-05 Improve binary cache fallback testEelco Dolstra2-7/+12
2018-06-05 Further improve upload messagesEelco Dolstra2-8/+11
2018-06-05 Remove non-existent NIX_DEBUG_SUBSTEelco Dolstra1-1/+1
2018-06-01 download.cc: fix readCallback return type (int -> size_t)Will Dietz1-2/+2
I'm not sure if curl ever asks for enough data at once for truncation to occur but better safe than sorry.
2018-06-01 Improve binary cache upload messagesEelco Dolstra2-5/+15
Don't say "download" when we mean "upload".
2018-05-31 upload-release.pl: Copy the install script and sign everythingEelco Dolstra1-15/+9
Note: this means that for those doing 'curl | sh', you can now pin a specific version, e.g. curl https://nixos.org/releases/nix/nix-2.0.4/install | sh https://nixos.org/nix/{install,install.sig} are now just symlinks to the corresponding files in the latest release directory.
2018-05-31 Merge pull request #767 from mogorman/garbage_collect_keep_last_fewPeter Simons4-6/+42
Implement --delete-generations + flag for keeping last N number of gens
2018-05-30 Explicitly describe the effects of filterSource excluding a directory.Shea Levy1-1/+3
2018-05-30 Fix static assertion failure on 32-bit systemsEelco Dolstra1-1/+1
2018-05-30 release.nix: Generate the installer scriptEelco Dolstra2-7/+28
2018-05-30 Move installer script from nixos-homepageEelco Dolstra1-0/+67
2018-05-30 Merge pull request #2194 from grahamc/nix-profile-daemon-profile-set-uEelco Dolstra2-3/+3
Nix profile & installation: handle set -u installations
2018-05-30 install-multi-user: support 'set -u' runs, closes #2193Graham Christensen1-1/+1
2018-05-30 nix-daemon.sh profile script: operate under `set -u`Graham Christensen1-2/+2
If the profile is sourced inside a script with `set -u`, the check for __ETC_PROFILE_NIX_SOURCED and NIX_SSL_CERT_FILE would raise an error. A simple guard around this check allows the script to operate under standard environments (where it is fairly reasonable to assume USER and HOME are set.)
2018-05-30 Merge pull request #2164 from mickours/doc-fetchTarball-timoutGraham Christensen1-1/+10
Explain fetchTarball timeout behavior in the doc
2018-05-30 Explain fetchTarball timeout behavior in the docMichael Mercier1-1/+10
2018-05-30 RemoteStore::addToStore(): Ensure capacity is decreased on exceptionsEelco Dolstra1-2/+5
2018-05-30 Fix deadlock in RemoteStore::queryPathInfoUncached()Eelco Dolstra1-25/+28
2018-05-30 Make <nix/fetchurl.nix> run in constant memoryEelco Dolstra3-35/+62
E.g. nix-build --store ~/my-nix/ -E 'import <nix/fetchurl.nix> { url = https://cache.nixos.org/nar/0nwi996rgq4b914qyx0mv2wq4k80hjac7xilikavagw7kxmn2iiv.nar.xz; sha256 = "0nwi996rgq4b914qyx0mv2wq4k80hjac7xilikavagw7kxmn2iiv"; }' now runs in 17 MiB (was 70 MiB), while nix-build --store ~/my-nix/ -E 'import <nix/fetchurl.nix> { url = https://cache.nixos.org/nar/0nwi996rgq4b914qyx0mv2wq4k80hjac7xilikavagw7kxmn2iiv.nar.xz; sha256 = "0d2fxljdih3nc5dqx41hjzic3141ajil94m8kdbpryq569dpsbvb"; unpack = true; }' runs in 17 MiB (was 346 MiB).
2018-05-30 getDownloader(): SimplifyEelco Dolstra1-4/+2