Skip to content

Tests Against Nix 2.26+ fail #126

@mrshmllow

Description

@mrshmllow

When running tests with Nixcpp 2.26+, tests fail with this error:

vm-test-run-test_basic_deploy> deployer # Error: failed to evaluate nix expression (last 20 lines):
vm-test-run-test_basic_deploy> deployer #        … while evaluating attribute 'nodes'
vm-test-run-test_basic_deploy> deployer #          at /nix/store/dn8arbalnivvgfsv21mznp3fm96kv8ni-runtime/evaluate.nix:74:5:
vm-test-run-test_basic_deploy> deployer #            73|     inherit path;
vm-test-run-test_basic_deploy> deployer #            74|     nodes = builtins.mapAttrs (_: v: v.config.deployment) nodes;
vm-test-run-test_basic_deploy> deployer #              |     ^
vm-test-run-test_basic_deploy> deployer #            75|   };
vm-test-run-test_basic_deploy> deployer # 
vm-test-run-test_basic_deploy> deployer #        … while evaluating attribute 'receiver'
vm-test-run-test_basic_deploy> deployer # 
vm-test-run-test_basic_deploy> deployer #        … while evaluating the attribute 'config.deployment'
vm-test-run-test_basic_deploy> deployer #          at /nix/store/z296wjc5kp3r27f34p9q7my26cp6fph3-zd0x43g1jcav0xy0k6q9pdhy3bvif77n-source/lib/modules.nix:358:9:
vm-test-run-test_basic_deploy> deployer #           357|         options = checked options;
vm-test-run-test_basic_deploy> deployer #           358|         config = checked (removeAttrs config [ "_module" ]);
vm-test-run-test_basic_deploy> deployer #              |         ^
vm-test-run-test_basic_deploy> deployer #           359|         _module = checked (config._module);
vm-test-run-test_basic_deploy> deployer # 
vm-test-run-test_basic_deploy> deployer #        (stack trace truncated; use '--show-trace' to show the full, detailed trace)
vm-test-run-test_basic_deploy> deployer # 
vm-test-run-test_basic_deploy> deployer #        error: Failed to open archive (Source threw exception: error: unable to download 'https://github.com/hercules-ci/flake-parts/archive/c621e8422220273271f52058f618c94e405bb0f5.tar.gz': Could not resolve hostname (6) Could not resolve host: github.com)

This means we cannot test wire against unstable channel's default nix.package.

I haven't tested this further but it might be because of default.nix, thanks eelco No, its not.

Possible Causes:

Likely Cause: NixOS/nix#10612

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtestsPull requests that update tests.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions