Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-07-30 | Merge branch 'master' of github.com:NixOS/nix into better-ca-parse-errors | Carlo Nucera | |
2020-07-30 | unsigned long long -> uint64_t | Eelco Dolstra | |
2020-07-28 | Restore backwards-compat for current `builtins.fetchGit` | Maximilian Bosch | |
If a repo is dirty, it used to return a `rev` object with an "empty" sha1 (0000000000000000000000000000000000000000). Please note that this only applies for `builtins.fetchGit` and *not* for `builtins.fetchTree{ type = "git"; }`. | |||
2020-07-28 | Merge legacy `fetchGit`-builtin with the generic `fetchTree`-function | Maximilian Bosch | |
The original idea was to implement a git-fetcher in Nix's core that supports content hashes[1]. In #3549[2] it has been suggested to actually use `fetchTree` for this since it's a fairly generic wrapper over the new fetcher-API[3] and already supports content-hashes. This patch implements a new git-fetcher based on `fetchTree` by incorporating the following changes: * Removed the original `fetchGit`-implementation and replaced it with an alias on the `fetchTree` implementation. * Ensured that the `git`-fetcher from `libfetchers` always computes a content-hash and returns an "empty" revision on dirty trees (the latter one is needed to retain backwards-compatibility). * The hash-mismatch error in the fetcher-API exits with code 102 as it usually happens whenever a hash-mismatch is detected by Nix. * Removed the `flakes`-feature-flag: I didn't see a reason why this API is so tightly coupled to the flakes-API and at least `fetchGit` should remain usable without any feature-flags. * It's only possible to specify a `narHash` for a `git`-tree if either a `ref` or a `rev` is given[4]. * It's now possible to specify an URL without a protocol. If it's missing, `file://` is automatically added as it was the case in the original `fetchGit`-implementation. [1] https://github.com/NixOS/nix/pull/3216 [2] https://github.com/NixOS/nix/pull/3549#issuecomment-625194383 [3] https://github.com/NixOS/nix/pull/3459 [4] https://github.com/NixOS/nix/pull/3216#issuecomment-553956703 | |||
2020-07-27 | Merge branch 'hash-always-has-type' of github.com:obsidiansystems/nix into ↵ | John Ericson | |
better-ca-parse-errors | |||
2020-07-27 | Merge remote-tracking branch 'upstream/master' into hash-always-has-type | John Ericson | |
2020-07-27 | Merge remote-tracking branch 'upstream/master' into ↵ | John Ericson | |
optional-derivation-output-storepath | |||
2020-07-27 | Merge remote-tracking branch 'upstream/master' into hash-always-has-type | John Ericson | |
2020-07-21 | Merge remote-tracking branch 'upstream/master' into better-ca-parse-errors | John Ericson | |
2020-07-17 | parseFlakeRef(): Only search for the top-level directory for CLI flakerefs | Eelco Dolstra | |
2020-07-16 | Merge branch 'master' of github.com:NixOS/nix into ↵ | Carlo Nucera | |
optional-derivation-output-storepath | |||
2020-07-16 | Merge branch 'hash-always-has-type' of github.com:obsidiansystems/nix into ↵ | John Ericson | |
better-ca-parse-errors | |||
2020-07-16 | Merge remote-tracking branch 'upstream/master' into hash-always-has-type | John Ericson | |
2020-07-15 | Merge branch 'master' of github.com:NixOS/nix into hash-always-has-type | Carlo Nucera | |
2020-07-14 | EvalCache: Ignore SQLite errors | Eelco Dolstra | |
Fixes #3794. | |||
2020-07-14 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-07-13 | toStorePath(): Return a StorePath and the suffix | Eelco Dolstra | |
2020-07-13 | Merge remote-tracking branch 'upstream/master' into hash-always-has-type | John Ericson | |
2020-07-12 | DerivationOutputExtensional -> DerivationOutputInputAddressed | John Ericson | |
Thanks @regnat for the great name. | |||
2020-07-12 | String .drv suffix to create derivation name | John Ericson | |
2020-07-12 | Set derivation name in dervationStrict | John Ericson | |
2020-07-12 | Don't improperly assume path is store path | John Ericson | |
2020-07-09 | Fix DerivationOutputExtensional name | Matthew Bauer | |
2020-07-08 | Only store hash of fixed derivation output | Matthew Bauer | |
we don’t need a full storepath for a fixedoutput derivation. So just putting the ingestion method + the hash is sufficient. | |||
2020-07-08 | Add name to BasicDerivation | Matthew Bauer | |
We always have a name for BasicDerivation, since we have a derivation store path that has a name. | |||
2020-07-06 | Merge branch 'master' of github.com:NixOS/nix into better-ca-parse-errors | Carlo Nucera | |
2020-07-06 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-07-02 | move showTrace to new loggerSettings | Ben Burdette | |
2020-07-02 | assert for invalid fileorigin | Ben Burdette | |
2020-07-01 | Rename two hash constructors to proper functions | Carlo Nucera | |
2020-07-01 | don't include errpos for addErrorContext | Ben Burdette | |
2020-07-01 | Support building flakes from a shallow Git repo | Eelco Dolstra | |
Fixes #3756. | |||
2020-06-30 | comments and cleanup | Ben Burdette | |
2020-06-30 | double addtrace for 'called from' | Ben Burdette | |
2020-06-29 | EvalCache: Store string contexts | Eelco Dolstra | |
2020-06-29 | Factor out EvalCache::forceDerivation() | Eelco Dolstra | |
2020-06-26 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-06-24 | convenience form of addTrace | Ben Burdette | |
2020-06-23 | use plain errPos instead of nixCode; fix tests | Ben Burdette | |
2020-06-23 | Merge remote-tracking branch 'upstream/master' into hash-always-has-type | John Ericson | |
2020-06-23 | Merge remote-tracking branch 'upstream/master' into add-trace | Ben Burdette | |
2020-06-19 | WIP: Make Hash always store a valid hash type | John Ericson | |
2020-06-19 | addErrorTrace | Ben Burdette | |
2020-06-19 | Merge remote-tracking branch 'upstream/master' into no-hash-type-unknown | John Ericson | |
2020-06-19 | Merge remote-tracking branch 'me/no-stringly-typed-derivation-output' into ↵ | John Ericson | |
validPathInfo-ca-proper-datatype | |||
2020-06-19 | Merge remote-tracking branch 'upstream/master' into ↵ | John Ericson | |
no-stringly-typed-derivation-output | |||
2020-06-19 | Use designated initializers for `DerivationOutputHash` | John Ericson | |
2020-06-19 | FileSystemHash -> DerivationOutputHash | John Ericson | |
2020-06-18 | Merge branch 'validPathInfo-temp' into validPathInfo-ca-proper-datatype | John Ericson | |
2020-06-18 | Merge branch 'no-hash-type-unknown' into validPathInfo-temp | John Ericson | |