You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: anonymous function at /home/joerg/git/nixpkgs/nixos/lib/testing.nix:1:1 called without required argument 'pkgs', at /home/joerg/git/nixops/nix/eval-machine-info.nix:9:6
error: evaluation of the deployment specification failed
Steps to reproduce
$ nixops deploy -d <any-deployment>
Technical details
system: "x86_64-linux"
host os: Linux 4.14.80, NixOS, 19.03.git.b43a02a (Koi)
@Mic92 Nixops relies on nixos/lib/build-vms.nix? I assumed it was internal to Nixpkgs, given it's not, afaik, documented anywhere.
I guess a fix would be to replace pkgs by pkgs ? import ../.. { inherit system config; }, if we indeed want build-vms.nix to be a public interface of Nixpkgs, along with adding a comment warning that this file is public interface and used by nixops :)
error: anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/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'm still getting the same error. I'm relatively new to nix/nixops. I cloned the repo, installed it, and I still get this when I run nixops deploy -d trivial (following the tutorial)
error: anonymous function at /home/wes/.nix-defexpr/channels/nixpkgs/nixos/lib/testing.nix:1:1 called without required argument 'pkgs', at /nix/store/prki8c8z7zih01q3nzsp3d6wprv8ymai-nixops-1.6/share/nix/nixops/eval-machine-info.nix:9:6
error: evaluation of the deployment specification failed
What branch do I need to be on for the fix? How do I verify that I have the latest release?
@juskrey I guess so. You can also checkout the nixops repository and run the ./dev-shell script to get a runnable nixops command or you override src in the nixops package.
called without required argument 'pkgs', at /nix/store/nm5agxh5aaclwm8gpyxbamawq4lpb62s-python2.7-nixops-1.6.1pre0_abcdef/share/nix/nixops/eval-machine-info.nix
When I tested nixops-1.6.1pre2706_d5ad09c on my Mac, it hung when I tried to deploy/destroy a small deployment to VisualBox. I decided to delete the vm from VisualBox and try again. Then it gave me an error from VBoxManage: could not find a virtual machine. Duh! I thought it would just create it. That is what the old version of nixops would do.
Activity
Mic92 commentedon Nov 15, 2018
actually it is this commit introducing
pkgs: 6c68fbdMic92 commentedon Nov 15, 2018
cc @Ekleog
Ekleog commentedon Nov 16, 2018
@Mic92 Nixops relies on
nixos/lib/build-vms.nix? I assumed it was internal to Nixpkgs, given it's not, afaik, documented anywhere.I guess a fix would be to replace
pkgsbypkgs ? import ../.. { inherit system config; }, if we indeed wantbuild-vms.nixto be a public interface of Nixpkgs, along with adding a comment warning that this file is public interface and used by nixops :)Mic92 commentedon Nov 16, 2018
I have no idea why it is actually using this file.
It dates back to very early versions of nixops: NixOS/nixops@bac59ad#diff-6f15e27c3e048b98302b636c2b8f983bR7
I was able to replace with
with import <nixpkgs> {}any problems for my setup.Ekleog commentedon Nov 16, 2018
Hmm, so I guess it's maybe a nixops bug then?
Mic92 commentedon Nov 16, 2018
My fix was merged, I hope it did not break something else. Nevertheless it is still an improvement over the current state.
Izorkin commentedon Nov 17, 2018
@Mic92 nixops not worked in latest commit
error:
Mic92 commentedon Nov 17, 2018
This is not the latest commit, you need: d5ad09cd3db5ed096d1bd17fbe5a0790b434f2c7
Mic92 commentedon Nov 17, 2018
I already asked to prepare a release: NixOS/nixops#1050
Mic92 commentedon Nov 17, 2018
I update nixopsUnstable in this pr: #50525
weskerfoot commentedon Nov 18, 2018
I'm still getting the same error. I'm relatively new to nix/nixops. I cloned the repo, installed it, and I still get this when I run
nixops deploy -d trivial(following the tutorial)What branch do I need to be on for the fix? How do I verify that I have the latest release?
weskerfoot commentedon Nov 18, 2018
Nevermind, I didn't realize the
nix-buildcommand doesn't actually install it to /nix. It seems to work nowIzorkin commentedon Nov 18, 2018
Thanks, worked.
juskrey commentedon Nov 18, 2018
nixpkgs channel for macos is still broken. Do we just have to wait for the build finish?
Mic92 commentedon Nov 19, 2018
@juskrey I guess so. You can also checkout the nixops repository and run the
./dev-shellscript to get a runnablenixopscommand or you overridesrcin the nixops package.Mic92 commentedon Nov 19, 2018
@juskrey If you are on stable, I should probably backport nixopsUnstable to that branch.
dmjio commentedon Nov 29, 2018
This is broken for me as well,
Mic92 commentedon Nov 29, 2018
This is not the right version! Should be nixops-1.6.1pre2706_d5ad09c
smalltalker55 commentedon Nov 30, 2018
When I tested nixops-1.6.1pre2706_d5ad09c on my Mac, it hung when I tried to deploy/destroy a small deployment to VisualBox. I decided to delete the vm from VisualBox and try again. Then it gave me an error from VBoxManage: could not find a virtual machine. Duh! I thought it would just create it. That is what the old version of nixops would do.