{"action":"closed","issue":{"url":"https://api.github.com/repos/FormidableLabs/builder/issues/63","labels_url":"https://api.github.com/repos/FormidableLabs/builder/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/FormidableLabs/builder/issues/63/comments","events_url":"https://api.github.com/repos/FormidableLabs/builder/issues/63/events","html_url":"https://github.com/FormidableLabs/builder/issues/63","id":123391740,"number":63,"title":"BUG: builder envs does not get same base env ($PATH etc.) as builder run on Node 4+","user":{"login":"exogen","id":53522,"avatar_url":"https://avatars.githubusercontent.com/u/53522?v=3","gravatar_id":"","url":"https://api.github.com/users/exogen","html_url":"https://github.com/exogen","followers_url":"https://api.github.com/users/exogen/followers","following_url":"https://api.github.com/users/exogen/following{/other_user}","gists_url":"https://api.github.com/users/exogen/gists{/gist_id}","starred_url":"https://api.github.com/users/exogen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exogen/subscriptions","organizations_url":"https://api.github.com/users/exogen/orgs","repos_url":"https://api.github.com/users/exogen/repos","events_url":"https://api.github.com/users/exogen/events{/privacy}","received_events_url":"https://api.github.com/users/exogen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FormidableLabs/builder/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-12-22T01:19:58Z","updated_at":"2015-12-22T02:47:18Z","closed_at":"2015-12-22T02:47:18Z","body":"If my `test` command is something like `mocha` or `wdio` that comes from `node_modules`, `builder run test` works fine, but `builder envs test --envs-path=envs.json` spits out:\r\n\r\n```\r\n/bin/sh: mocha: command not found\r\n```\r\n\r\nBuilder should start out with whatever `$PATH` additions come standard with `builder run`, then merge in stuff from `envs` on top of that.\r\n\r\n(In case it matters: I'm using Builder just for its task running features, without an archetype.)"}}