aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-09-27build: also throw hash-mismatch errors if `buildMode == bmCheck`Maximilian Bosch
This actually bit me quite recently in `nixpkgs` because I assumed that `nix-build --check` would also error out if hashes don't match anymore[1] and so I wrongly assumed that I couldn't reproduce the mismatch error. The fix is rather simple, during the output registration a so-called `delayedException` is instantiated e.g. if a FOD hash-mismatch occurs. However, in case of `nix-build --check` (or `--rebuild` in case of `nix build`), the code-path where this exception is thrown will never be reached. By adding that check to the if-clause that causes an early exit in case of `bmCheck`, the issue is gone. Also added a (previously failing) test-case to demonstrate the problem. [1] https://github.com/NixOS/nixpkgs/pull/139238, the underlying issue was that `nix-prefetch-git` returns different hashes than `fetchgit` because the latter one fetches submodules by default.
2021-09-24Merge pull request #4573 from oxalica/fix/git-init-spamEelco Dolstra
Explicitly set default branch name for git to suppress "git hint"
2021-09-24Explicitly set initial branch name for gitoxalica
2021-09-24Merge pull request #5253 from edolstra/flake-ifdEelco Dolstra
Don't allow IFD in flakes by default
2021-09-23Merge pull request #5290 from edolstra/ssh-nologinEelco Dolstra
SSHStore / LegacySSHStore: Show better error if the remote's stdout is polluted
2021-09-23Shut down write side before draining the read sideEelco Dolstra
This is important if the remote side *does* execute nix-store/nix-daemon successfully, but stdout is polluted (e.g. because the remote user's bashrc script prints something to stdout). In that case we have to shutdown the write side to force the remote nix process to exit.
2021-09-23SSHStore / LegacySSHStore: Show a better error message if the remote is ↵Eelco Dolstra
"nologin" Instead of error: serialised integer 7161674624452356180 is too large for type 'j' we now get error: 'nix-store --serve' protocol mismatch from 'sshtest@localhost', got 'This account is currently not available.' Fixes https://github.com/NixOS/nixpkgs/issues/37287.
2021-09-23Remove risky char *Eelco Dolstra
2021-09-23Add some more instrumentationEelco Dolstra
2021-09-23Merge pull request #5284 from edolstra/revert-4922Eelco Dolstra
Revert "Merge pull request #4922 from nrdxp/default-submodules"
2021-09-22Revert "Merge pull request #4922 from nrdxp/default-submodules"Eelco Dolstra
This reverts commit 6678e98411cd3bfe8143a4ba1b35d1451babce32, reversing changes made to 90b2dd570cbd8313a8cf45b3cf66ddef2bb06e07.
2021-09-22Disable IFD selectivelyEelco Dolstra
It's now disabled by default for the following: * 'nix search' (this was already implied by read-only mode) * 'nix flake show' * 'nix flake check', but only on the hydraJobs output
2021-09-22Make setDefault() typedEelco Dolstra
2021-09-22QuietEelco Dolstra
2021-09-22Don't cache realiseContext() errorsEelco Dolstra
Errors that depend on the configuration (such as whether allow-import-from-derivation is set) should not be cached.
2021-09-22Add missing #includeEelco Dolstra
Fixes #5282.
2021-09-22Merge pull request #5281 from abathur/install_macos_montereyEelco Dolstra
fix install on macOS monterey
2021-09-21fix install on macOS montereyTravis A. Everett
2021-09-21Merge pull request #5279 from edolstra/restrict-path-inputsEelco Dolstra
Fix relative path input handling
2021-09-21Set input parent at construction timeEelco Dolstra
2021-09-21Allow relative paths anywhere into the parent's store pathEelco Dolstra
2021-09-21path fetcher: Fix relative path checkEelco Dolstra
2021-09-20Merge pull request #5277 from NixOS/regnat/ci-better-cache-usageEelco Dolstra
flake: Use the real nixUnstable from nixpkgs
2021-09-20flake: Use the real nixUnstable from nixpkgsregnat
Don’t let it pick our overriden lowdown as that would cause it not to be cached in cache.nixos.org
2021-09-20Merge pull request #5266 from gkleen/fix/s3-cache-schemeEelco Dolstra
Fix scheme query parameter for s3 cache
2021-09-17Fix scheme argument to s3 cacheGregor Kleen
2021-09-17Merge pull request #5263 from greedy/fix-5261Eelco Dolstra
Include subpath in flake fingerprint
2021-09-16Include subpath in flake fingerprintGeoff Reedy
Without this, flakes within the same tree and same lock data will have the same fingerprint and the eval cache for one flake will be incorrectly used for another.
2021-09-15Merge pull request #5257 from edolstra/dirty-lock-fileEelco Dolstra
If we can't write a lock file, pretend the top-level flake is dirty
2021-09-15Merge branch 'mh/fix-chroot-eval' of https://github.com/obsidiansystems/nixEelco Dolstra
2021-09-15If we can't write a lock file, pretend the top-level flake is dirtyEelco Dolstra
Alternative to #4639. You can still read flake.lock, but at least in reproducible workflows like NixOS configurations where you require a non-dirty tree, evaluation will fail because there is no rev.
2021-09-15Revert "Disallow reading flake.lock"Eelco Dolstra
This reverts commit e5596113f7fc5e47e058bb15afdf75eee02ed95e.
2021-09-15Merge pull request #5251 from emilazy/darwin-sandbox-rosetta-2Eelco Dolstra
sandbox: allow Rosetta 2 on Darwin
2021-09-15sandbox: allow Rosetta 2 on DarwinEmily
This allows sandboxed x86_64-darwin builds on aarch64-darwin.
2021-09-14Rename unnecessary git@Eelco Dolstra
2021-09-14Merge pull request #5249 from edolstra/nix-profileEelco Dolstra
Add missing 'nix profile' subcommands
2021-09-14Merge pull request #5250 from edolstra/censor-flake-lockEelco Dolstra
Disallow reading flake.lock
2021-09-14Disallow reading flake.lockEelco Dolstra
With --no-write-lock-file, it's possible that flake.lock is out of sync with the actual inputs used by the evaluation. So doing fromJSON (readFile ./flake.lock) will give wrong results. Fixes #4639.
2021-09-14nix profile history: Show profile dateEelco Dolstra
2021-09-14Add 'nix profile wipe-history' commandEelco Dolstra
2021-09-14Generations -> profile versionsEelco Dolstra
2021-09-14Fix quotesEelco Dolstra
2021-09-14Add "nix profile rollback" commandEelco Dolstra
2021-09-14nix flake show --json: Add type infoEelco Dolstra
For extensibility, every leaf node is now an object that contains at least a type field (e.g. "type": "derivation").
2021-09-14Merge branch 'tomberek/show_json' of https://github.com/tomberek/nixEelco Dolstra
2021-09-14Merge pull request #5242 from ↵Domen Kožar
NixOS/dependabot/github_actions/cachix/install-nix-action-14 Bump cachix/install-nix-action from 13 to 14
2021-09-14Merge pull request #5247 from edolstra/stablize-ca-referencesEelco Dolstra
Remove the 'ca-references' feature check
2021-09-14Respect NO_COLOR in Markdown outputEelco Dolstra
2021-09-14Bump cachix/install-nix-action from 13 to 14dependabot[bot]
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 13 to 14. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v13...v14) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2021-09-14Merge pull request #5248 from edolstra/flake-cloneEelco Dolstra
Fix 'nix flake clone' on github repos