aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-29Merge pull request #7358 from ncfavier/repl-exit-newlineEelco Dolstra
repl: print a newline on ctrl-D
2022-11-29Merge pull request #7363 from ↵Eelco Dolstra
NixOS/dependabot/github_actions/zeebe-io/backport-action-0.0.9 Bump zeebe-io/backport-action from 0.0.8 to 0.0.9
2022-11-28Bump zeebe-io/backport-action from 0.0.8 to 0.0.9dependabot[bot]
Bumps [zeebe-io/backport-action](https://github.com/zeebe-io/backport-action) from 0.0.8 to 0.0.9. - [Release notes](https://github.com/zeebe-io/backport-action/releases) - [Commits](https://github.com/zeebe-io/backport-action/compare/v0.0.8...v0.0.9) --- updated-dependencies: - dependency-name: zeebe-io/backport-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-11-28Merge pull request #7313 from yorickvP/nlohmann-everywhereEelco Dolstra
Replace src/libutil/json.cc with nlohmann
2022-11-28use logger->cout Naïm Favier
in order to avoid potential problems with the progress bar Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
2022-11-28repl: print a newline on ctrl-DNaïm Favier
2022-11-27Merge pull request #7353 from edolstra/gc-shutdownEelco Dolstra
Fix random client failures during GC server shutdown
2022-11-27Fix random client failures during GC server shutdownEelco Dolstra
We need to close the GC server socket before shutting down the active GC client connections, otherwise a client may (re)connect and get ECONNRESET. But also handle ECONNRESET for resilience. Fixes random failures like GC socket disconnected connecting to '/tmp/nix-shell.y07M0H/nix-test/default/var/nix/gc-socket/socket' sending GC root '/tmp/nix-shell.y07M0H/nix-test/default/store/kb5yzija0f1x5xkqkgclrdzldxj6nnc6-non-blocking' reading GC root from client: error: unexpected EOF reading a line 1 store paths deleted, 0.00 MiB freed error: reading from file: Connection reset by peer in gc-non-blocking.sh.
2022-11-26Merge pull request #7350 from edolstra/remove-strndupEelco Dolstra
Don't use GC_STRNDUP
2022-11-25Don't use GC_STRNDUPEelco Dolstra
It calls strlen() on the input (rather than simply copying at most `size` bytes), which can fail if the input is not zero-terminated and is inefficient in any case. Fixes #7347.
2022-11-23Merge pull request #7337 from Radvendii/why-depends-caThéophane Hufschmitt
Fix why-depends for CA derivations
2022-11-23add explanation and testTaeer Bar-Yam
2022-11-23Fix why-depends for CA derivationsTaeer Bar-Yam
why-depends assumed that we knew the output path of the second argument. For CA derivations, we might not know until it's built. One way to solve this would be to build the second installable to get the output path. In this case we don't need to, though. If the first installable (A) depends on the second (B), then getting the store path of A will necessitate having the store path B. The contrapositive is, if the store path of B is not known (i.e. it's a CA derivation which hasn't been built), then A does not depend on B.
2022-11-22Merge pull request #7328 from edolstra/nix-build-statsEelco Dolstra
nix build --json: Include build statistics
2022-11-22Merge pull request #7333 from fricklerhandwerk/language-overviewEelco Dolstra
fix error in language overview
2022-11-22fix error in language overviewValentin Gagarin
it is not possible to antiquote numbers.
2022-11-21Merge pull request #6456 from amjoseph-nixpkgs/seccomp-mipsEelco Dolstra
local-derivation-goal.cc: enable seccomp filters for mips{32,64}
2022-11-21nix build --json: Include build statisticsEelco Dolstra
Example: # nix build -L --extra-experimental-features cgroups --impure --expr 'with import <nixpkgs> {}; runCommand "foo" {} "dd if=/dev/urandom bs=1M count=1024 | md5sum; mkdir $out"' --json [ { "cpuSystem": 1.911431, "cpuUser": 1.214249, "drvPath": "/nix/store/xzdqz67xba18hljhycp0hwfigzrs2z69-foo.drv", "outputs": { "out": "/nix/store/rh9mc9l2gkpq8kn2sgzndr6ll7ffjh6l-foo" }, "startTime": 1669024076, "stopTime": 1669024079 } ]
2022-11-21Rename derivedPathsWithHintsToJSON -> builtPathsToJSONEelco Dolstra
2022-11-16Replace src/libutil/json.cc with nlohmann json generationYorick van Pelt
2022-11-16Merge pull request #7134 from yorickvP/disable-dbg-on-completeThéophane Hufschmitt
Temporarily disable the debugger during completion evaluation
2022-11-16Swallow the error in a more idiomatic wayThéophane Hufschmitt
2022-11-15Merge pull request #7294 from tobim/support-aws-sdk-1.10Théophane Hufschmitt
libstore: link to aws-crt-cpp
2022-11-15Merge pull request #7283 from hercules-ci/issue-6572Théophane Hufschmitt
Fix #6572 `requires non-existent output`
2022-11-15Merge pull request #7260 from ncfavier/readFile-scan-referencesThéophane Hufschmitt
Restrict `readFile` context to references that appear in the string
2022-11-14tests: Reproduce #6572Robert Hensing
2022-11-14derivation-goal: Fix `requires non-existing output` errorRobert Hensing
It occurred when a output of the dependency was already available, so it didn't need rebuilding and didn't get added to the inputDrvOutputs. This process-related info wasn't suitable for the purpose of finding the actual input paths for the builder. It is better to do this in absolute terms by querying the store.
2022-11-14Test that the result of `readFile` gets ref-scannedThéophane Hufschmitt
2022-11-14Merge pull request #7295 from Et7f3/pkg-config-lowdownEelco Dolstra
build: use pkg-config for lowdown
2022-11-14Add release-notes for the context-restriction in readFileThéophane Hufschmitt
2022-11-14Merge remote-tracking branch 'nixos/master' into readFile-scan-referencesThéophane Hufschmitt
2022-11-12build: use pkg-config for lowdownEt7f3
2022-11-12libstore: link to aws-crt-cppTobias Mayer
This change is needed to support aws-sdk-cpp 1.10 and newer. I opted not to make this dependent on the sdk version because the crt dependency has been in the interface of the older sdk as well, and it was only coincidence that libstore didn't make use of any privately defined symbols directly.
2022-11-11Merge pull request #7279 from fricklerhandwerk/uninstallThéophane Hufschmitt
add removing users to uninstall instructions
2022-11-11remove stray commaValentin Gagarin
2022-11-11Merge pull request #7229 from Mic92/ciValentin Gagarin
Auto-assign reviewers by file
2022-11-11Restrict `readFile` context to references that appear in the stringNaïm Favier
When calling `builtins.readFile` on a store path, the references of that path are currently added to the resulting string's context. This change makes those references the *possible* context of the string, but filters them to keep only the references whose hash actually appears in the string, similarly to what is done for determining the runtime references of a path.
2022-11-10Merge pull request #7258 from ncfavier/fix-eval-error-fmtThéophane Hufschmitt
Fix printing of eval errors with two format placeholders
2022-11-09Merge pull request #7006 from fricklerhandwerk/redirectsThéophane Hufschmitt
manual: generalize anchor redirects
2022-11-09add removing users to uninstall instructionsValentin Gagarin
2022-11-09Merge pull request #6906 from fricklerhandwerk/language-overviewValentin Gagarin
add syntax overview from NixOS manual
2022-11-09fix typos in commentsValentin Gagarin
2022-11-08Merge pull request #7257 from Artturin/ca-referencesremoveThéophane Hufschmitt
tests/impure-derivations.sh: remove unknown experimental feature 'ca-…
2022-11-07Merge pull request #7264 from patricksjackson/remote-bracketsEelco Dolstra
build-remote: Add brackets to error message
2022-11-07Merge pull request #7267 from fricklerhandwerk/build-taskEelco Dolstra
manual: build action -> build task
2022-11-07Merge pull request #7252 from yorickvP/fix-7175Eelco Dolstra
tarfile: set directory mode to at least 0500, don't extract fflags and perms
2022-11-06manual: build action -> build taskValentin Gagarin
after discussing this with multiple people, I'm convinced that "build task" is more precise: a derivation is not an action, but inert until it is built. also it's easier to pronounce. proposal: use "build task" for the generic concept "description of how to derive new files from the contents of existing files". then it will be easier to distinguish what we mean by "derivation" (a specific data structure and Nix language value type) and "store derivation" (a serialisation of a derivation into a file in the Nix store).
2022-11-04build-remote: Add brackets to error messagePatrick Jackson
2022-11-04Fix printing of eval errors with two format placeholdersNaïm Favier
2022-11-03tests/impure-derivations.sh: remove unknown experimental feature 'ca-references'Artturin
ca-references was stabilized in d589a6aa8a5d0c9f391400d7e0e209106e89c857