{"action":"created","issue":{"url":"https://api.github.com/repos/ksonnet/ksonnet/issues/500","repository_url":"https://api.github.com/repos/ksonnet/ksonnet","labels_url":"https://api.github.com/repos/ksonnet/ksonnet/issues/500/labels{/name}","comments_url":"https://api.github.com/repos/ksonnet/ksonnet/issues/500/comments","events_url":"https://api.github.com/repos/ksonnet/ksonnet/issues/500/events","html_url":"https://github.com/ksonnet/ksonnet/issues/500","id":318621236,"number":500,"title":"ERROR No ksonnet application found on freshly cloned repos","user":{"login":"jessesuen","id":12677113,"avatar_url":"https://avatars0.githubusercontent.com/u/12677113?v=4","gravatar_id":"","url":"https://api.github.com/users/jessesuen","html_url":"https://github.com/jessesuen","followers_url":"https://api.github.com/users/jessesuen/followers","following_url":"https://api.github.com/users/jessesuen/following{/other_user}","gists_url":"https://api.github.com/users/jessesuen/gists{/gist_id}","starred_url":"https://api.github.com/users/jessesuen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessesuen/subscriptions","organizations_url":"https://api.github.com/users/jessesuen/orgs","repos_url":"https://api.github.com/users/jessesuen/repos","events_url":"https://api.github.com/users/jessesuen/events{/privacy}","received_events_url":"https://api.github.com/users/jessesuen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-28T09:56:12Z","updated_at":"2018-04-29T11:53:13Z","closed_at":null,"author_association":"NONE","body":"**Is this a BUG REPORT or FEATURE REQUEST?**: BUG REPORT\r\n\r\n/kind bug\r\n\r\n**What happened**:\r\n\r\nThe pkg/metadata::Find() function attempts to locate a ksonnet app by recursively looking for the presence of a .ksonnet directory. The problem is that `.ksonnet/registries` is by default added to the `.gitignore`, which means the `.ksonnet` dir will not be checked into git. So when freshly cloning a git repo containing a ksonnet app, some ksonnet commands will fail with `ERROR No ksonnet application found`\r\n\r\nThis affects some (but not all) `ks` commands like `ks diff` which still rely on this discovery mechanism. Others like `ks env list` and `ks show <env>` are not affected. \r\n\r\n**What you expected to happen**:\r\n\r\n`ks diff` should work without the presence of .ksonnet dir\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\n\r\n```\r\ncd someapp\r\nrm -rf .ksonnet\r\nks diff default\r\n```\r\n\r\n**Environment**:\r\n- ksonnet version (use `ks version`): v0.10.1\r\n"},"comment":{"url":"https://api.github.com/repos/ksonnet/ksonnet/issues/comments/385245757","html_url":"https://github.com/ksonnet/ksonnet/issues/500#issuecomment-385245757","issue_url":"https://api.github.com/repos/ksonnet/ksonnet/issues/500","id":385245757,"user":{"login":"bryanl","id":240,"avatar_url":"https://avatars3.githubusercontent.com/u/240?v=4","gravatar_id":"","url":"https://api.github.com/users/bryanl","html_url":"https://github.com/bryanl","followers_url":"https://api.github.com/users/bryanl/followers","following_url":"https://api.github.com/users/bryanl/following{/other_user}","gists_url":"https://api.github.com/users/bryanl/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanl/subscriptions","organizations_url":"https://api.github.com/users/bryanl/orgs","repos_url":"https://api.github.com/users/bryanl/repos","events_url":"https://api.github.com/users/bryanl/events{/privacy}","received_events_url":"https://api.github.com/users/bryanl/received_events","type":"User","site_admin":false},"created_at":"2018-04-29T11:53:13Z","updated_at":"2018-04-29T11:53:13Z","author_association":"OWNER","body":"Were there any commands other than diff that failed? "}}
{"actor":{"display_login":"bryanl"}}