regression on deploy: attribute 'lib' missing #328

Closed
opened 2025-05-06 16:12:20 +02:00 by kiara · 4 comments
Owner
log
nixops4 error: Error during evaluation: error:
       … while evaluating the attribute 'value'
         at /nix/store/9jn1cxgvdiv2jd7b8g794qiv16xxv7bq-source/modules.nix:846:9:
          845|     in warnDeprecation opt //
          846|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          847|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `nixops4Deployments.test.resources.garage-configuration.inputs.args':

       … while evaluating the attribute 'mergedValue'
         at /nix/store/9jn1cxgvdiv2jd7b8g794qiv16xxv7bq-source/modules.nix:881:5:
          880|     # Type-check the remaining definitions, and merge them. Or throw if no definitions.
          881|     mergedValue =
             |     ^
          882|       if isDefined then

       … while evaluating definitions from `/nix/store/5n099088630wh2bz9vinfpnfzssnk1nf-source/modules/nixops4Resource/nixos.nix':

       … while evaluating the option `nixops4Deployments.test.resources.garage-configuration.nixos.configuration':

       … while evaluating definitions from `/nix/store/5n099088630wh2bz9vinfpnfzssnk1nf-source/modules/nixops4Resource/nixos.nix':

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

       error: attribute 'lib' missing
       at /nix/store/5n099088630wh2bz9vinfpnfzssnk1nf-source/modules/nixops4Resource/nixos.nix:61:23:
           60|     nixos = {
           61|       configuration = config.nixpkgs.lib.nixosSystem {
             |                       ^
           62|         modules = [
[06/May/2025 14:01:37] "POST /deployment/status/ HTTP/1.1" 200 29
[06/May/2025 14:01:37] "GET /debug/history_sidebar/?store_id=a0b7e1eb952f4824b655408fbbaaf2f0 HTTP/1.1" 200 10254

this looks caused by Fediversity/Fediversity@f4ebf55a15 (diff-8342e02305)

<details><summary>log</summary> ``` nixops4 error: Error during evaluation: error: … while evaluating the attribute 'value' at /nix/store/9jn1cxgvdiv2jd7b8g794qiv16xxv7bq-source/modules.nix:846:9: 845| in warnDeprecation opt // 846| { value = addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 847| inherit (res.defsFinal') highestPrio; … while evaluating the option `nixops4Deployments.test.resources.garage-configuration.inputs.args': … while evaluating the attribute 'mergedValue' at /nix/store/9jn1cxgvdiv2jd7b8g794qiv16xxv7bq-source/modules.nix:881:5: 880| # Type-check the remaining definitions, and merge them. Or throw if no definitions. 881| mergedValue = | ^ 882| if isDefined then … while evaluating definitions from `/nix/store/5n099088630wh2bz9vinfpnfzssnk1nf-source/modules/nixops4Resource/nixos.nix': … while evaluating the option `nixops4Deployments.test.resources.garage-configuration.nixos.configuration': … while evaluating definitions from `/nix/store/5n099088630wh2bz9vinfpnfzssnk1nf-source/modules/nixops4Resource/nixos.nix': (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: attribute 'lib' missing at /nix/store/5n099088630wh2bz9vinfpnfzssnk1nf-source/modules/nixops4Resource/nixos.nix:61:23: 60| nixos = { 61| configuration = config.nixpkgs.lib.nixosSystem { | ^ 62| modules = [ [06/May/2025 14:01:37] "POST /deployment/status/ HTTP/1.1" 200 29 [06/May/2025 14:01:37] "GET /debug/history_sidebar/?store_id=a0b7e1eb952f4824b655408fbbaaf2f0 HTTP/1.1" 200 10254 ``` </details> this looks caused by https://git.fediversity.eu/Fediversity/Fediversity/commit/f4ebf55a1531a07585e7bcd910d4a4b6989e05ae#diff-8342e0230589b5085aae540fafd4e955f4e1f8b7
Owner

I have just now rebased on top of that same commit and am also encountering issues. Things that used to be wired up through the flake have been removed but not replaced by another mechanism. I will probably fix that while working on the integration test.

I have just now rebased on top of that same commit and am also encountering issues. Things that used to be wired up through the flake have been removed but not replaced by another mechanism. I will probably fix that while working on the integration test.
Author
Owner

presumably to be closed by #361

presumably to be closed by #361
Owner

I'm a bit puzzled because I don't think I had to do anything to fix this issue. Presumably that's because it is a problem of the wiring of the deployment/default.nix function and the test does its own wiring? This deserves more care before it can be closed, I believe.

I'm a bit puzzled because I don't think I had to do anything to fix this issue. Presumably that's because it is a problem of the wiring of the `deployment/default.nix` function and the test does its own wiring? This deserves more care before it can be closed, I believe.
Niols reopened this issue 2025-06-16 18:55:21 +02:00
Author
Owner

closed by dupe #390

closed by dupe #390
kiara closed this issue 2025-07-04 14:11:40 +02:00
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
fediversity/fediversity#328
No description provided.