aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-12-06Merge pull request #1714 from LnL7/fix-ssh-store-narEelco Dolstra
ssh-store: fix length when writing nar
2017-12-06ssh-store: fix length when writing narDaiderd Jordan
This fixes nix copy and other things that use copyStorePath.
2017-12-05Merge branch 'fetchGit-fast-revision-update'Shea Levy
2017-12-04Simplify build by including nlohmann/json.hppEelco Dolstra
2017-12-04Fix #1635.Eelco Dolstra
2017-11-29Merge pull request #1704 from lheckemann/buildenv-eol-fixEelco Dolstra
Fix "Unexpected EOF reading a line" error
2017-11-29Fix "Unexpected EOF reading a line" errorLinus Heckemann
propagated-user-env-packages files in nixpkgs aren't all terminated by newlines, as buildenv expected. Now it does not require a terminating newline; note that this introduces a behaviour change: propagated user env packages may now be spread across multiple lines. However, nix 1.11.x still expects them to be on a single line so this shouldn't be used in nixpkgs for now.
2017-11-28Show log tail when a remote build failsEelco Dolstra
2017-11-27Merge pull request #1699 from aszlig/fix-remote-build-logEelco Dolstra
build-remote: Fix missing log output
2017-11-25build-remote: Fix missing log outputaszlig
The storeUri variable in the build-remote hook is declared very much to the start of the main function and a bunch of lines later, the same variable gets checked via hasPrefix() but it gets assigned *after* that check when the most suitable machine for the build was choosen. So I guess this was just a typo in d16fd2497374671c92cb877f9570d65783a7 and what we really want is to either checkd the prefix *after* assigning storeUri or use bestMachine->storeUri directly. I choose the latter, because the former could introduce even more regressions if the try block where the variable gets assigned terminates early. Nevertheless, the reason why the log output didn't work is because hasPrefix() checked for "ssh://" in front of storeUri, but if the storeUri isn't set correctly (or at all), we don't get the log file descriptor set up properly, leading to no log output. I've adjusted the remote-builds test to include a regression test for this, so that we can make sure we get a build output when using remote builds. In addition to that I've tested this with two of my build farms and the build logs are emitted correctly again. Signed-off-by: aszlig <aszlig@nix.build>
2017-11-24nix path-info: Show URL of NARs in binary cachesEelco Dolstra
2017-11-24nix-shell/nix-build: Support .drv files againEelco Dolstra
Fixes #1663. Also handle '!<output-name>' (#1694).
2017-11-24fetchGit: Ignore tarballTtl if rev is set and not in the repo.Shea Levy
Fixes #1697.
2017-11-21tests/run.sh: Fix /build conflict when building in a sandboxEelco Dolstra
https://hydra.nixos.org/build/64519355
2017-11-21fetchGit/fetchMercurial: Fix directory inclusion checkEelco Dolstra
E.g. the existence of .gitignore would cause .git to be included.
2017-11-21Propagate flags like --sandbox to the daemon properlyEelco Dolstra
2017-11-21Add a warning about the 'trusted-users' optionEelco Dolstra
2017-11-20Add tests for verifying/copying content-addressed pathsEelco Dolstra
These don't require signatures.
2017-11-20Add tests for signature checking when copying between local storesEelco Dolstra
2017-11-20Document secret-key-filesEelco Dolstra
2017-11-20Add tests for "nix run"Eelco Dolstra
2017-11-20nix eval --raw: Use coerceToString()Eelco Dolstra
Thus, $ nix eval --raw '("foo")' foo $ nix eval --raw nixpkgs.hello /nix/store/1y6ckg6khrdsvll54s5spcmf3w6ka9k4-hello-2.10 $ nix eval --raw '(/etc/resolv.conf)' /nix/store/vml92ama92i8mz013nny461mlvg8mvap-resolv.conf
2017-11-20nix run: Fix "flag '--command' requires 2 argument(s)"Eelco Dolstra
2017-11-20nix run: Fix accidental removal of /nix/store existence checkEelco Dolstra
Parenthetical to #1686, we don't need to create a new root if we can just bind-mount on top of the existing /nix/store.
2017-11-20nix run: Ignore non-directories while setting up the chrootEelco Dolstra
Fixes #1686.
2017-11-20Test: Replace --option with the corresponding flagEelco Dolstra
2017-11-20signed-binary-caches -> require-sigsEelco Dolstra
Unlike signed-binary-caches (which could only be '*' or ''), require-sigs is a proper Boolean option. The default is true.
2017-11-20CleanupEelco Dolstra
2017-11-20binary-cache-public-keys -> trusted-public-keysEelco Dolstra
The name had become a misnomer since it's not only for substitution from binary caches, but when adding/copying any (non-content-addressed) path to a store.
2017-11-20install-darwin-multi-user.sh: Remove superfluous nix.conf settingsEelco Dolstra
2017-11-20Merge pull request #1645 from twhitehead/stat-raceEelco Dolstra
Fix (highly unlikely) race condition in readLink
2017-11-20nix copy: Abbreviate "daemon"Eelco Dolstra
2017-11-15Add a "profile" option to S3BinaryCacheStoreEelco Dolstra
This allows specifying the AWS configuration profile to use. E.g. nix copy --from s3://my-cache?profile=aws-dev-account /nix/store/cf3isrlqavvd5w7rpky1fa8j9lcnlggm-...
2017-11-15Merge pull request #1678 from dtzWill/feature/anchor-exit-exceptionEelco Dolstra
anchor nix::Exit exception
2017-11-15DohEelco Dolstra
2017-11-14anchor nix::Exit exceptionWill Dietz
2017-11-14Add dependencies for coverage testEelco Dolstra
2017-11-14Update lcov filterEelco Dolstra
2017-11-14nix sign-paths: Support binary cachesEelco Dolstra
2017-11-14Add tests for "nix verify", "nix sign-paths" etc.Eelco Dolstra
2017-11-14Revert "Don't parse "x:x" as a URI"Eelco Dolstra
This reverts commit f90f660b243866b8860eeb24cc4a345d32cc7ce7. This broke Hydra's release.nix, which contained preCheck = ''export LOGNAME=${LOGNAME:-foo}'';
2017-11-14nix ls-{nar,store}: Don't abort on missing filesEelco Dolstra
2017-11-14Add some testsEelco Dolstra
2017-11-14nix ls-{nar,store} --json: Respect -REelco Dolstra
2017-11-14Don't indent JSON outputEelco Dolstra
2017-11-14nix ls-{store,nar}: Add --json flagEelco Dolstra
2017-11-14Remove ncurses-binEelco Dolstra
2017-11-14Make config options available to legacy commandsEelco Dolstra
2017-11-14Rename tests/nar-index -> tests/nar-accessEelco Dolstra
2017-11-08Remove extraneous commentEelco Dolstra