aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-10-09Merge remote-tracking branch 'upstream/master' into fix-and-ci-static-buildsJohn Ericson
2020-10-09Remove LazyEelco Dolstra
This fixes a crash during startup when compiling Nix as a single compilation unit.
2020-10-09writeFile(): Add error context to writeFull() failureEelco Dolstra
Issue #4092.
2020-10-09Remove stray DerivationOutputsAndPaths typeEelco Dolstra
2020-10-07Dynamically disable user namespaces if CLONE_NEWUSER failsEelco Dolstra
This makes builds work inside nixos-enter. Fixes #3145.
2020-10-07Support user namespaces being disabledEelco Dolstra
If max_user_namespaces is set to 0, then don't run the build in a user namespace. Fixes #4092.
2020-10-07DohEelco Dolstra
2020-10-07Tweak error messagesEelco Dolstra
2020-10-07Serialize exceptions from the daemon to the clientEelco Dolstra
2020-10-07Serialize exceptions from the sandbox process to the parentEelco Dolstra
Fixes #4118.
2020-10-07FormattingEelco Dolstra
2020-10-07Remove generic std::optional<T> suppport from worker protoJohn Ericson
See comment for rational; I think it's good to leave a comment lest anyone is tempted to add such a sum-type instance again. Fixes #4113
2020-10-06Prevent a deadlock when user namespace setup failsEelco Dolstra
Observed on Centos 7 when user namespaces are disabled: DerivationGoal::startBuilder() throws an exception, ~DerivationGoal() waits for the child process to exit, but the child process hangs forever in drainFD(userNamespaceSync.readSide.get()) in DerivationGoal::runChild(). Not sure why the SIGKILL doesn't get through. Issue #4092.
2020-10-06Shut up some clang warningsEelco Dolstra
2020-10-06Remove static variable name clashesEelco Dolstra
This was useful for an experiment with building Nix as a single compilation unit. It's not very useful otherwise but also doesn't hurt...
2020-10-06Remove unneeded -lboost_* flagsEelco Dolstra
2020-10-06Remove 'using namespace fetchers'Eelco Dolstra
2020-10-06Factor out common showBytes()Eelco Dolstra
2020-10-06Add missing #pragma onceEelco Dolstra
2020-10-05Fix s3:// storeEelco Dolstra
Fixes https://github.com/NixOS/nixos-org-configurations/issues/123.
2020-10-05Merge pull request #3935 from obsidiansystems/binary-cache-addToStoreFromDumpEelco Dolstra
Get rid of Hash::dummy from BinaryCacheStore
2020-10-05Merge pull request #3895 from obsidiansystems/templated-daemon-protocolEelco Dolstra
More templated STL support for the daemon protocol
2020-10-02Fix profile update in nix commandFabian Möller
2020-10-01add more examples to --help of `nix run`DavHau
2020-09-30StyleEelco Dolstra
2020-09-30SimplifyEelco Dolstra
2020-09-30Merge branch 'access-tokens' of https://github.com/kquick/nixEelco Dolstra
2020-09-30Merge remote-tracking branch 'upstream/master' into templated-daemon-protocolJohn Ericson
2020-09-30nix::worker_proto -> worker_protoJohn Ericson
2020-09-30Revert "Use template structs instead of phantoms"John Ericson
This reverts commit 9ab07e99f527d1fa3adfa02839da477a1528d64b.
2020-09-29Remove github-access-token in favor of access-token.Kevin Quick
2020-09-29Merge branch 'kwq/path-dir-query' of https://github.com/kquick/nixEelco Dolstra
2020-09-29nix registry list: Show 'dir' attributeEelco Dolstra
Issue #4050.
2020-09-29Merge branch 'master' into access-tokensKevin Quick
2020-09-29Make Headers an optional argumentEelco Dolstra
2020-09-29CleanupEelco Dolstra
2020-09-29Merge branch 'github-api-token' of https://github.com/imalsogreg/nixEelco Dolstra
2020-09-28Clarify comment a bitJohn Ericson
2020-09-28Use `drvPath2` and give it a better nameJohn Ericson
2020-09-28Merge remote-tracking branch 'upstream/master' into ca-floating-upstreamJohn Ericson
2020-09-28Update src/libstore/binary-cache-store.ccJohn Ericson
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
2020-09-28Merge pull request #4064 from serokell/balsoft/fix-max-jobsEelco Dolstra
Fix max-jobs option
2020-09-28Merge pull request #4077 from Ma27/left-whitespace-logEelco Dolstra
libmain/progress-bar: don't trim whitespace on the left
2020-09-27Miscellaneous spelling fixes in comments. (#4071)Kevin Quick
2020-09-26libmain/progress-bar: don't trim whitespace on the leftMaximilian Bosch
When running `nix build -L` it can be fairly hard to read the output if the build program intentionally renders whitespace on the left. A typical example is `g++` displaying compilation errors. With this patch, the whitespace on the left is retained to make the log more readable: ``` foo> no configure script, doing nothing foo> building foo> foobar.cc: In function 'int main()': foo> foobar.cc:5:5: error: 'wrong_func' was not declared in this scope foo> 5 | wrong_func(1); foo> | ^~~~~~~~~~ error: --- Error ------------------------------------------------------------------------------------- nix error: --- Error --- nix-daemon builder for '/nix/store/i1q76cw6cyh91raaqg5p5isd1l2x6rx2-foo-1.0.drv' failed with exit code 1 ```
2020-09-26Remove redundant nar hash and size settingJohn Ericson
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2020-09-26Fix up BinaryCacheStore::addToStore taking a pathJohn Ericson
2020-09-26BinaryCacheStore::addTextToStore include CA fieldJohn Ericson
2020-09-26Merge remote-tracking branch 'obsidian/master' into ↵John Ericson
binary-cache-addToStoreFromDump
2020-09-25Use "?dir=..." portion of "registry add" local path specification.Kevin Quick
The registry targets generally follow a URL formatting schema with support for a query parameter of "?dir=subpath" to specify a sub-path location below the URL root. Alternatively, an absolute path can be specified. This specification mode accepts the query parameter but ignores/drops it. It would probably be better to either (a) disallow the query parameter for the path form, or (b) recognize the query parameter and add to the path. This patch implements (b) for consistency, and to make it easier for tooling that might switch between a remote git reference and a local path reference. See also issue #4050.