aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-11-03Make the realisation fetching from binary caches asyncregnat
That way we can fetch several realisations from the same cache in parallel
2021-11-03Expose an async interface for `queryRealisation`regnat
Doesn’t change much so far because everything is still using it synchronously, but should allow the binary cache to fetch stuff in parallel
2021-11-03Don’t require `ca-derivations` when `__contentAddressed = false`regnat
If we explicitely opt-out of it, there’s no need to require the experimental feature
2021-11-02Merge pull request #5459 from andersk/echo-eEelco Dolstra
installer: Do not use echo -e in #!/bin/sh script
2021-11-02installer: Do not use echo -e in #!/bin/sh scriptAnders Kaseorg
ShellCheck correctly warns: In scripts/install-nix-from-closure.sh line 218: echo -e "\nif [ -e $p ]; then . $p; fi # added by Nix installer" >> "$fn" ^-- SC3037: In POSIX sh, echo flags are undefined. In scripts/install-nix-from-closure.sh line 229: echo -e "\nif [ -e $p ]; then . $p; fi # added by Nix installer" >> "$fn" ^-- SC3037: In POSIX sh, echo flags are undefined. Indeed, this actually breaks on Ubuntu where /bin/sh is dash. Fixes #5458. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2021-11-02Merge pull request #5462 from edolstra/remove-source-tarballEelco Dolstra
Remove references to building from the source tarball
2021-11-02Remove references to building from the source tarballEelco Dolstra
2021-11-02install-nix-actionv@v14.1Domen Kožar
2021-11-02Update release scriptEelco Dolstra
2021-11-01Fix 2.4 migration examplesEelco Dolstra
2021-10-29Merge pull request #5448 from edolstra/timeoutEelco Dolstra
Apply a 60-minute timeout to the 'tests' workflow
2021-10-29Apply a 60-minute timeout to the 'tests' workflowEelco Dolstra
2021-10-29StyleEelco Dolstra
2021-10-29Merge branch 'master' of https://github.com/alekswn/nixEelco Dolstra
2021-10-28Merge pull request #5149 from edolstra/non-blocking-gcEelco Dolstra
Non-blocking garbage collector
2021-10-28Use nix::connect() to connect to the garbage collectorEelco Dolstra
2021-10-28Remove unused variableEelco Dolstra
2021-10-28Merge remote-tracking branch 'origin/master' into non-blocking-gcEelco Dolstra
2021-10-28Rename rl-2.5.md to rl-next.mdEelco Dolstra
Having a generically named file for release notes for the next release makes things easier for PRs.
2021-10-27Remove redundant 'warning:'Eelco Dolstra
2021-10-272.4 release notes: Add some migration notesEelco Dolstra
2021-10-27Merge pull request #5440 from edolstra/build-remoteEelco Dolstra
Fix preferLocalBuild when max-jobs == 0
2021-10-27build-remote: Implicitly add the 'builtin' system type to all machinesEelco Dolstra
This makes 'nix-env -i --max-jobs 0' work with remote builders.
2021-10-27If max-jobs == 0, do preferLocalBuild on remote buildersEelco Dolstra
2021-10-27daemon: Accept 'repeat' setting from untrusted usersEelco Dolstra
Fixes #5352.
2021-10-27StyleEelco Dolstra
2021-10-26Merge pull request #5421 from bew/fix-devshell-build-on-non-nixosEelco Dolstra
Fix devShell build on non-NixOS with a different boost version
2021-10-26parseExperimentalFeature(): Initialize atomicallyEelco Dolstra
2021-10-26Tweak fetchTree docsEelco Dolstra
2021-10-26Merge remote-tracking branch 'origin/overhaul-xp-features'Eelco Dolstra
2021-10-26Make experimental-features a proper typeregnat
Rather than having them plain strings scattered through the whole codebase, create an enum containing all the known experimental features. This means that - Nix can now `warn` when an unkwown experimental feature is passed (making it much nicer to spot typos and spot deprecated features) - It’s now easy to remove a feature altogether (once the feature isn’t experimental anymore or is dropped) by just removing the field for the enum and letting the compiler point us to all the now invalid usages of it.
2021-10-23Fix devShell build on non-NixOS with a different boost versionBenoit de Chezelles
2021-10-19Merge pull request #5405 from ↵Domen Kožar
NixOS/dependabot/github_actions/actions/checkout-2.3.5 Bump actions/checkout from 2.3.4 to 2.3.5
2021-10-18Bump actions/checkout from 2.3.4 to 2.3.5dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 2.3.5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.3.4...v2.3.5) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2021-10-17Merge pull request #5398 from kamadorueda/masterDomen Kožar
fetch: nicer infinite recursion errors
2021-10-17Merge pull request #5365 from arafangion/masterDomen Kožar
Clarify that not all nix packages will use the default build phases
2021-10-17fetch: nicer infinite recursion errorsKevin Amado
- This change applies to builtins.fetchurl and builtins.fetchTarball - PoC: `let x = builtins.fetchurl x; in x` - Before: ```bash $ nix-instantiate --extra-experimental-features flakes --strict error: infinite recursion encountered ``` - After: ```bash $ nix-instantiate --extra-experimental-features flakes --strict error: infinite recursion encountered at /data/github/kamadorueda/nix/test.nix:1:9: 1| let x = builtins.fetchurl x; in x | ^ ``` Mentions: #3505
2021-10-17Merge pull request #5396 from kamadorueda/masterEelco Dolstra
fetchTree: add pos to EvalState::forceValue
2021-10-17Add error reporting to machine spec paserAlexey Novikov
Currently machine specification (`/etc/nix/machine`) parser fails with a vague exception if the file had incorrect format. This commit adds verbose exceptions and unit-tests for the parser.
2021-10-17Fix error detection in 'base64Decode()'Alexey Novikov
Fixed a bug in initialization of 'base64DecodeChars' variable. Currently decoder do not fail on invalid Base64 strings. Added test-case to verify the fix. Also have made 'base64DecodeChars' to be computed at compile time. And added a test case to encode/decode string with non-printable charactes.
2021-10-17Clarify that not all nix packages will use the default build phasesJohn Chapman
2021-10-15fetchTree: add pos to EvalState::forceValueKevin Amado
- This way we improve error messages on infinite recursion - Demo: ```nix let x = builtins.fetchTree { type = "git"; inherit x; }; in x ``` - Before: ```bash $ nix-instantiate --extra-experimental-features flakes --strict error: infinite recursion encountered ``` - After: ```bash $ nix-instantiate --extra-experimental-features flakes --strict error: infinite recursion encountered at /data/github/kamadorueda/nix/test.nix:3:10: 2| type = "git"; 3| inherit x; | ^ 4| }; ``` Mentions: #3505
2021-10-15fetchTree: add pos to EvalState::forceValueKevin Amado
- This way we improve error messages on infinite recursion - Demo: ```nix let x = builtins.fetchTree x; in x ``` - Before: ```bash $ nix-instantiate --extra-experimental-features flakes --strict error: infinite recursion encountered ``` - After: ```bash $ nix-instantiate --extra-experimental-features flakes --strict error: infinite recursion encountered at /data/github/kamadorueda/nix/test.nix:1:9: 1| let x = builtins.fetchTree x; | ^ 2| in x ``` Mentions: #3505
2021-10-15Revert "Fix referrers test"Eelco Dolstra
This reverts commit e31a48366f19d5fa452df6273e817a4ea5516e50. Unnecessary after 0be8cc1466f317e33977590510bac4b18471f0ce.
2021-10-15Add a test for the non-blocking GCEelco Dolstra
2021-10-15Fix main GC thread exitingEelco Dolstra
2021-10-15Fix crash when a GC client disconnectsEelco Dolstra
The client thread can't just delete its own thread object from connections, it has to detach it.
2021-10-15Merge pull request #5390 from NixOS/fix-isnewerthan-checkEelco Dolstra
Fix the `isDaemonNewer` guard in the testsuite
2021-10-15Disable the eval-store test when using the daemonregnat
Using the daemon will break most of the assumptions of this test, so it’s as simple to just disable it
2021-10-15Fix test against old daemonEelco Dolstra