You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nushell (https://github.com/nushell/nushell) at commit db9b88089e9f8ac69ce1a2b0e9f3aff2b892bae5 depends on an unreleased library version, and imports it from git:
$ nix build
fetching Git repository 'https://github.com/nushell/reedline.git'fatal: couldn't find remote ref refs/heads/master
error: program 'git' failed with exit code 128
(use '--show-trace' to show detailed location information)
This might be because the repository uses main not master? I would have expected naersk to cope with that by now, though.
Setting gitAllRefs makes the build go further, so I assume that worked around this particular problem. However, the documentation for gitAllRefs says
Whether to fetch all refs while fetching Git dependencies. Useful if the wanted revision isn't in the default branch. Requires Nix 2.4+. Default: false
which does not apply here; the relevant reedline commit (59f7144d721cd573f629048e753f163f2652334f) is in reedline's default branch, as seen at https://github.com/nushell/reedline/commits/main -- the default branch is just named main not master.
nix build --show-trace
fatal: couldn't find remote ref refs/heads/master
error: program 'git' failed with exit code 128
… while fetching the input 'git+https://github.com/nushell/reedline.git?rev=59f7144d721cd573f629048e753f163f2652334f'
… while evaluating the attribute 'buildCommand' of the derivation 'git-deps'
at /nix/store/d0xl1nq63szk40j5s70qwp3p0zgx4nqb-source/pkgs/stdenv/generic/make-derivation.nix:278:7:
277| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
278| name =
| ^
279| let
… while evaluating the attribute 'paths' of the derivation 'crates-io'
at /nix/store/d0xl1nq63szk40j5s70qwp3p0zgx4nqb-source/pkgs/stdenv/generic/make-derivation.nix:278:7:
277| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
278| name =
| ^
279| let
… while evaluating 'outputVal'
at /nix/store/6p8svd0kaprcjl9jxzpwzaz8s7pqrgi1-source/builtins/to-toml.nix:41:15:
40|
41| outputVal = v:
| ^
42| let
… from call site
at /nix/store/6p8svd0kaprcjl9jxzpwzaz8s7pqrgi1-source/builtins/to-toml.nix:39:9:
38| "{ ${valsStr} }" else
39| outputVal v;
| ^
40|
… while evaluating 'outputValInner'
at /nix/store/6p8svd0kaprcjl9jxzpwzaz8s7pqrgi1-source/builtins/to-toml.nix:28:20:
27|
28| outputValInner = v:
| ^
29| let
… from call site
at /nix/store/6p8svd0kaprcjl9jxzpwzaz8s7pqrgi1-source/builtins/to-toml.nix:69:42:
68| vals = mapAttrsToList
69| (k': v': "${quoteKey k'} = ${outputValInner v'}") v;
| ^
70| valsStr = concatStringsSep ", " vals;
… while evaluating anonymous lambda
at /nix/store/6p8svd0kaprcjl9jxzpwzaz8s7pqrgi1-source/builtins/to-toml.nix:69:18:
68| vals = mapAttrsToList
69| (k': v': "${quoteKey k'} = ${outputValInner v'}") v;
| ^
70| valsStr = concatStringsSep ", " vals;
… from call site
at /nix/store/d0xl1nq63szk40j5s70qwp3p0zgx4nqb-source/lib/attrsets.nix:356:16:
355| mapAttrsToList = f: attrs:
356| map (name: f name attrs.${name}) (attrNames attrs);
| ^
357|
… while evaluating anonymous lambda
at /nix/store/d0xl1nq63szk40j5s70qwp3p0zgx4nqb-source/lib/attrsets.nix:356:10:
355| mapAttrsToList = f: attrs:
356| map (name: f name attrs.${name}) (attrNames attrs);
| ^
357|
… from call site
… while evaluating anonymous lambda
at /nix/store/6p8svd0kaprcjl9jxzpwzaz8s7pqrgi1-source/builtins/to-toml.nix:133:10:
132| concatMapStringsSep "\n"
133| (kv: concatStringsSep "\n" (outputKeyVal kv.k kv.v))
| ^
134| (
… from call site
… while evaluating 'concatMapStringsSep'
at /nix/store/d0xl1nq63szk40j5s70qwp3p0zgx4nqb-source/lib/strings.nix:111:5:
110| # List of input strings
111| list: concatStringsSep sep (map f list);
| ^
112|
… from call site
at /nix/store/6p8svd0kaprcjl9jxzpwzaz8s7pqrgi1-source/builtins/to-toml.nix:132:7:
131| in
132| concatMapStringsSep "\n"
| ^
133| (kv: concatStringsSep "\n" (outputKeyVal kv.k kv.v))
… while evaluating 'toTOML'
at /nix/store/6p8svd0kaprcjl9jxzpwzaz8s7pqrgi1-source/builtins/to-toml.nix:119:12:
118|
119| toTOML = attrs:
| ^
120| assert (typeOf attrs == "set");
… from call site
at /nix/store/6p8svd0kaprcjl9jxzpwzaz8s7pqrgi1-source/build.nix:198:19:
197| # and git dependencies.
198| cargoconfig = builtinz.toTOML {
| ^
199| source = {
… while evaluating the attribute 'cargoconfig' of the derivation 'nu-deps-0.65.1'
at /nix/store/d0xl1nq63szk40j5s70qwp3p0zgx4nqb-source/pkgs/stdenv/generic/make-derivation.nix:278:7:
277| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
278| name =
| ^
279| let
… while evaluating the attribute 'builtDependencies' of the derivation 'nu-0.65.1'
at /nix/store/d0xl1nq63szk40j5s70qwp3p0zgx4nqb-source/pkgs/stdenv/generic/make-derivation.nix:278:7:
277| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
278| name =
| ^
279| let
Nushell (https://github.com/nushell/nushell) at commit db9b88089e9f8ac69ce1a2b0e9f3aff2b892bae5 depends on an unreleased library version, and imports it from git:
https://github.com/nushell/nushell/blob/db9b88089e9f8ac69ce1a2b0e9f3aff2b892bae5/Cargo.toml#L55
https://github.com/nushell/nushell/blob/db9b88089e9f8ac69ce1a2b0e9f3aff2b892bae5/Cargo.lock#L3857
Naersk fails to fetch the sources for that:
This might be because the repository uses
main
notmaster
? I would have expected naersk to cope with that by now, though.Setting
gitAllRefs
makes the build go further, so I assume that worked around this particular problem. However, the documentation forgitAllRefs
sayswhich does not apply here; the relevant reedline commit (59f7144d721cd573f629048e753f163f2652334f) is in reedline's default branch, as seen at https://github.com/nushell/reedline/commits/main -- the default branch is just named
main
notmaster
.nix build --show-trace
reproducing flake.nix
reproducing flake.lock
The text was updated successfully, but these errors were encountered: