{"action":"closed","issue":{"url":"https://api.github.com/repos/apex/apex/issues/467","repository_url":"https://api.github.com/repos/apex/apex","labels_url":"https://api.github.com/repos/apex/apex/issues/467/labels{/name}","comments_url":"https://api.github.com/repos/apex/apex/issues/467/comments","events_url":"https://api.github.com/repos/apex/apex/issues/467/events","html_url":"https://github.com/apex/apex/issues/467","id":162631547,"number":467,"title":"function.json ignored when using default environment","user":{"login":"w-vi","id":5246357,"avatar_url":"https://avatars.githubusercontent.com/u/5246357?v=3","gravatar_id":"","url":"https://api.github.com/users/w-vi","html_url":"https://github.com/w-vi","followers_url":"https://api.github.com/users/w-vi/followers","following_url":"https://api.github.com/users/w-vi/following{/other_user}","gists_url":"https://api.github.com/users/w-vi/gists{/gist_id}","starred_url":"https://api.github.com/users/w-vi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w-vi/subscriptions","organizations_url":"https://api.github.com/users/w-vi/orgs","repos_url":"https://api.github.com/users/w-vi/repos","events_url":"https://api.github.com/users/w-vi/events{/privacy}","received_events_url":"https://api.github.com/users/w-vi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/apex/apex/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/apex/apex/milestones/6","html_url":"https://github.com/apex/apex/milestones/0.11.0","labels_url":"https://api.github.com/repos/apex/apex/milestones/6/labels","id":1836224,"number":6,"title":"0.11.0","description":"","creator":{"login":"tj","id":25254,"avatar_url":"https://avatars.githubusercontent.com/u/25254?v=3","gravatar_id":"","url":"https://api.github.com/users/tj","html_url":"https://github.com/tj","followers_url":"https://api.github.com/users/tj/followers","following_url":"https://api.github.com/users/tj/following{/other_user}","gists_url":"https://api.github.com/users/tj/gists{/gist_id}","starred_url":"https://api.github.com/users/tj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tj/subscriptions","organizations_url":"https://api.github.com/users/tj/orgs","repos_url":"https://api.github.com/users/tj/repos","events_url":"https://api.github.com/users/tj/events{/privacy}","received_events_url":"https://api.github.com/users/tj/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":3,"state":"open","created_at":"2016-06-18T21:18:01Z","updated_at":"2016-07-02T18:39:36Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-06-28T08:37:46Z","updated_at":"2016-07-02T18:39:36Z","closed_at":"2016-07-02T18:39:36Z","body":"If `-env` not provided the default is appended to `function.json` unlike the `project.json`. In my case `dev` is the default and I do not specify it when `apex build myfunc -l debug > out.zip` but it looks for `function.dev.json` and read `project.json`. I thought that those work the same way. Is this a bug or intended behaviour?\r\n\r\nRelevant bit of [function.go](https://github.com/apex/apex/blob/master/function/function.go#L116). The environment is not empty, it seems that it is never empty as the default if specified is used.\r\n\r\n  - __Operating system__: Linux \r\n  - __Apex Version__: 0.10.2\r\n"}}
{"actor":{"display_login":"tj"}}