{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixops/issues/690","repository_url":"https://api.github.com/repos/NixOS/nixops","labels_url":"https://api.github.com/repos/NixOS/nixops/issues/690/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixops/issues/690/comments","events_url":"https://api.github.com/repos/NixOS/nixops/issues/690/events","html_url":"https://github.com/NixOS/nixops/issues/690","id":237323389,"number":690,"title":"Extremely confusing output when accidentally running nixops on a derivation","user":{"login":"nh2","id":399535,"avatar_url":"https://avatars1.githubusercontent.com/u/399535?v=4","gravatar_id":"","url":"https://api.github.com/users/nh2","html_url":"https://github.com/nh2","followers_url":"https://api.github.com/users/nh2/followers","following_url":"https://api.github.com/users/nh2/following{/other_user}","gists_url":"https://api.github.com/users/nh2/gists{/gist_id}","starred_url":"https://api.github.com/users/nh2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nh2/subscriptions","organizations_url":"https://api.github.com/users/nh2/orgs","repos_url":"https://api.github.com/users/nh2/repos","events_url":"https://api.github.com/users/nh2/events{/privacy}","received_events_url":"https://api.github.com/users/nh2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-20T19:45:00Z","updated_at":"2017-07-24T11:59:48Z","closed_at":null,"body":"Let's say you have this file `test-derivation.nix`:\r\n\r\n```nix\r\n(import <nixpkgs> {}).stdenv.mkDerivation { name = \"test\"; }\r\n```\r\n\r\nThen if you run it, you get:\r\n\r\n```\r\n$ nixops create -d crashtest 'test-derivation.nix'\r\n$ nixops deploy -d crashtest\r\nerror: cannot coerce a boolean to a string, at /home/niklas/.nix-defexpr/channels/nixpkgs/lib/modules.nix:99:60\r\n(use ‘--show-trace’ to show detailed location information)\r\nerror: evaluation of the deployment specification failed\r\n```\r\n\r\n`cannot coerce a boolean to a string`, pretty confusing. Can we do something about it?"},"comment":{"url":"https://api.github.com/repos/NixOS/nixops/issues/comments/317400327","html_url":"https://github.com/NixOS/nixops/issues/690#issuecomment-317400327","issue_url":"https://api.github.com/repos/NixOS/nixops/issues/690","id":317400327,"user":{"login":"domenkozar","id":126339,"avatar_url":"https://avatars2.githubusercontent.com/u/126339?v=4","gravatar_id":"","url":"https://api.github.com/users/domenkozar","html_url":"https://github.com/domenkozar","followers_url":"https://api.github.com/users/domenkozar/followers","following_url":"https://api.github.com/users/domenkozar/following{/other_user}","gists_url":"https://api.github.com/users/domenkozar/gists{/gist_id}","starred_url":"https://api.github.com/users/domenkozar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenkozar/subscriptions","organizations_url":"https://api.github.com/users/domenkozar/orgs","repos_url":"https://api.github.com/users/domenkozar/repos","events_url":"https://api.github.com/users/domenkozar/events{/privacy}","received_events_url":"https://api.github.com/users/domenkozar/received_events","type":"User","site_admin":false},"created_at":"2017-07-24T11:59:47Z","updated_at":"2017-07-24T11:59:47Z","body":"Maybe nixops should always assert it gets back an attribute set?"}}
{"actor":{"display_login":"domenkozar"}}