error: attribute 'stable_upstream' missing - when trying to update lix to 2.91.1 #553

Closed
opened 2024-10-19 07:43:05 +00:00 by ddogfoodd · 4 comments

Platform

  • Linux: NixOS
  • macOS
  • WSL

Additional information

Coming from lix 2.91.0, I edited the version number in my flake.nix, then updated flake and tried to rebuild

Output

Output

> Building NixOS configuration
fetching git input 'git+file:///home/jost/.config/nixos'
warning: Git tree '/home/jost/.config/nixos' is dirty
error:
       … while calling the 'head' builtin
         at /nix/store/w7nfn4lcfisddz14b0y8n05rjf0dl5lq-source/lib/attrsets.nix:1575:11:
         1574|         || pred here (elemAt values 1) (head values) then
         1575|           head values
             |           ^
         1576|         else

       … while evaluating the attribute 'value'
         at /nix/store/w7nfn4lcfisddz14b0y8n05rjf0dl5lq-source/lib/modules.nix:816:9:
          815|     in warnDeprecation opt //
          816|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          817|         inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'stable_upstream' missing
       at /nix/store/63f0m5kng7yg51z22d9rrpd60wcyblb4-source/overlay.nix:76:13:
           75|             (drv: (drv.pname or "") == "nix")
           76|             prev.nixVersions.stable_upstream # default to stable nix if nix is not an input
             |             ^
           77|             inputs;
┏━ 1 Errors:
┃ error:
┃        … while calling the 'head' builtin
┃          at /nix/store/w7nfn4lcfisddz14b0y8n05rjf0dl5lq-source/lib/attrsets.nix:1…
┃          1574|         || pred here (elemAt values 1) (head values) then
┃          1575|           head values
┃              |           ^
┃          1576|         else
┃
┃        … while evaluating the attribute 'value'
┃          at /nix/store/w7nfn4lcfisddz14b0y8n05rjf0dl5lq-source/lib/modules.nix:81…
┃           815|     in warnDeprecation opt //
┃           816|       { value = addErrorContext "while evaluating the option `${sh…
┃              |         ^
┃           817|         inherit (res.defsFinal') highestPrio;
┃
┃        (stack trace truncated; use '--show-trace' to show the full trace)
┃
┃        error: attribute 'stable_upstream' missing
┃        at /nix/store/63f0m5kng7yg51z22d9rrpd60wcyblb4-source/overlay.nix:76:13:
┃            75|             (drv: (drv.pname or "") == "nix")
┃            76|             prev.nixVersions.stable_upstream # default to stable n…
┃              |             ^
┃            77|             inputs;
┣━━━
┗━ ∑ ⚠ Exited with 1 errors reported by nix at 09:42:17 after 6s
Error:
   0: Command exited with status Exited(1)

Location:
   src/commands.rs:151

## Platform <!-- select the platform on which you tried to install Lix --> - [x] Linux: NixOS - [ ] macOS - [ ] WSL ## Additional information Coming from lix 2.91.0, I edited the version number in my `flake.nix`, then updated flake and tried to rebuild ## Output <details><summary>Output</summary> ```log > Building NixOS configuration fetching git input 'git+file:///home/jost/.config/nixos' warning: Git tree '/home/jost/.config/nixos' is dirty error: … while calling the 'head' builtin at /nix/store/w7nfn4lcfisddz14b0y8n05rjf0dl5lq-source/lib/attrsets.nix:1575:11: 1574| || pred here (elemAt values 1) (head values) then 1575| head values | ^ 1576| else … while evaluating the attribute 'value' at /nix/store/w7nfn4lcfisddz14b0y8n05rjf0dl5lq-source/lib/modules.nix:816:9: 815| in warnDeprecation opt // 816| { value = addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 817| inherit (res.defsFinal') highestPrio; (stack trace truncated; use '--show-trace' to show the full trace) error: attribute 'stable_upstream' missing at /nix/store/63f0m5kng7yg51z22d9rrpd60wcyblb4-source/overlay.nix:76:13: 75| (drv: (drv.pname or "") == "nix") 76| prev.nixVersions.stable_upstream # default to stable nix if nix is not an input | ^ 77| inputs; ┏━ 1 Errors: ┃ error: ┃ … while calling the 'head' builtin ┃ at /nix/store/w7nfn4lcfisddz14b0y8n05rjf0dl5lq-source/lib/attrsets.nix:1… ┃ 1574| || pred here (elemAt values 1) (head values) then ┃ 1575| head values ┃ | ^ ┃ 1576| else ┃ ┃ … while evaluating the attribute 'value' ┃ at /nix/store/w7nfn4lcfisddz14b0y8n05rjf0dl5lq-source/lib/modules.nix:81… ┃ 815| in warnDeprecation opt // ┃ 816| { value = addErrorContext "while evaluating the option `${sh… ┃ | ^ ┃ 817| inherit (res.defsFinal') highestPrio; ┃ ┃ (stack trace truncated; use '--show-trace' to show the full trace) ┃ ┃ error: attribute 'stable_upstream' missing ┃ at /nix/store/63f0m5kng7yg51z22d9rrpd60wcyblb4-source/overlay.nix:76:13: ┃ 75| (drv: (drv.pname or "") == "nix") ┃ 76| prev.nixVersions.stable_upstream # default to stable n… ┃ | ^ ┃ 77| inputs; ┣━━━ ┗━ ∑ ⚠ Exited with 1 errors reported by nix at 09:42:17 after 6s Error: 0: Command exited with status Exited(1) Location: src/commands.rs:151 ``` </details>
Author

I thought this might be an error on my side, so I added nixos stable input to my flake, didn't fix it.

I thought this might be an error on my side, so I added nixos stable input to my flake, didn't fix it.
Owner

ah no i must have screwed up the module 2.91.1 release. I'll have to look at it today and roll a 2.91.1-1 module. oops.

ah no i must have screwed up the module 2.91.1 release. I'll have to look at it today and roll a 2.91.1-1 module. oops.
Owner

Change the module to 2.91.1-1. Sorry.

Change the module to 2.91.1-1. Sorry.
jade closed this issue 2024-10-19 17:56:19 +00:00
Author

Thanks for the quick fix!

Thanks for the quick fix!
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#553
No description provided.