-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
nixopsUnstable broke after upgrade recently #139532
Description
Describe the bug
Nixops was working before upgrading
Steps To Reproduce
Steps to reproduce the behavior:
- Use nixops
- Upgrade nixpkgs to any version later than 45256745cef246dabe1ae8a7d109988f190cd7ef
- Run
nixops deployor evennixops list
Expected behavior
I should be able to run nixops deploy to update a deployment.
Screenshots
ivan@tobati:~/nixops/aij$ nixops deploy --build-only
error: while evaluating 'zipAttrs' at /nix/store/flaida1s0xg1f6wrybq17834nbbyhkk8-python3-3.9.6-env/lib/python3.9/site-packages/nix/eval-machine-info.nix:17:14, called from /nix/store/flaida1s0xg1f6wrybq17834nbbyhkk8-python3-3.9.6-env/lib/python3.9/site-packages/nix/eval-machine-info.nix:38:13:
while evaluating 'operator' at /nix/store/flaida1s0xg1f6wrybq17834nbbyhkk8-python3-3.9.6-env/lib/python3.9/site-packages/nix/eval-machine-info.nix:31:20, called from undefined position:
while evaluating 'getNetworkFromExpr' at /nix/store/flaida1s0xg1f6wrybq17834nbbyhkk8-python3-3.9.6-env/lib/python3.9/site-packages/nix/eval-machine-info.nix:24:28, called from /nix/store/flaida1s0xg1f6wrybq17834nbbyhkk8-python3-3.9.6-env/lib/python3.9/site-packages/nix/eval-machine-info.nix:31:45:
while evaluating 'call' at /nix/store/flaida1s0xg1f6wrybq17834nbbyhkk8-python3-3.9.6-env/lib/python3.9/site-packages/nix/eval-machine-info.nix:12:10, called from /nix/store/flaida1s0xg1f6wrybq17834nbbyhkk8-python3-3.9.6-env/lib/python3.9/site-packages/nix/eval-machine-info.nix:25:10:
anonymous function at /home/ivan/nixops/aij/nixops.nix:1:1 called without required argument 'config', at /nix/store/flaida1s0xg1f6wrybq17834nbbyhkk8-python3-3.9.6-env/lib/python3.9/site-packages/nix/eval-machine-info.nix:12:43
error: evaluation of the deployment specification failed
Additional context
I re-tested with previous version of nixos-unstable-small I had used, and found this changed between b769bd2b01bce5afe0af703218593355c6f52337 and f96ba73ac0057f5da7920b9635b25938508ad39b. Looking at git long and a bit more testing I found the 942b5b6 included a nixopsUnstable upgrade which seems like the cause.
I have not (knowingly) started using flakes yet.
I'm not entirely sure this is a proper bug or an intentional backwards incompatibility with an obtuse error message. If nothing else we should improve the error message and document in release notes.
Notify maintainers
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
ivan@tobati:~/nixops/aij$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 5.10.63, NixOS, 21.11 (Porcupine)`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.3.15`
- channels(root): `"nixos-20.03pre208171.2e8fc97dbfa"`
- nixpkgs: `/etc/nixos/aij/unstable`
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module: