NixOS / nixops

NixOps is a tool for deploying to NixOS machines in a network or cloud.
https://nixos.org/nixops
GNU Lesser General Public License v3.0
1.78k stars 363 forks source link

error: called without required argument 'pkgs' #1052

Open cryptix opened 5 years ago

cryptix commented 5 years ago

hey!

I might have played a bit fast and loose with building deployments of nixpkgs master and now I get this error when I try to destroy it:

error: anonymous function at /home/cryptix/nixpkgs/nixos/lib/testing.nix:1:1 called without required argument 'pkgs', at /nix/store/gqnkwh6m77l4g6gwjma60nlwszwzk571-nixops-1.6.1pre2622_f10999a/share/nix/nixops/eval-machine-info.nix:9:6
error: evaluation of the deployment specification failed

i was using nixops 1.6.0 before and just tried the unstable one (1.6.1pre..) but they both can't destroy what it created and give me the same error message (minus the store path).

There is nothing important to recover but I just noticed that I have no idea where nixops keeps it's state/the table of deployments etc to wipe it...? I also wonder if this is a bug and/or expected?

I guess I just didn't realize how nixops is tied into nixpkgs? I was using nixops create -I nixpkgs=my-checkout-of-nixpkgs-with-some-patches.

edit: okay - I was told and found the state in ~/.nixops

mbrgm commented 5 years ago

https://github.com/NixOS/nixops/pull/1047 fixed this for me. Consider installing latest nixops from master.