{"action":"created","issue":{"url":"https://api.github.com/repos/yext/edward/issues/133","repository_url":"https://api.github.com/repos/yext/edward","labels_url":"https://api.github.com/repos/yext/edward/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/yext/edward/issues/133/comments","events_url":"https://api.github.com/repos/yext/edward/issues/133/events","html_url":"https://github.com/yext/edward/issues/133","id":258943083,"number":133,"title":"Expand ENV variables in watches and base from service.path.","user":{"login":"bradobro","id":354176,"avatar_url":"https://avatars1.githubusercontent.com/u/354176?v=4","gravatar_id":"","url":"https://api.github.com/users/bradobro","html_url":"https://github.com/bradobro","followers_url":"https://api.github.com/users/bradobro/followers","following_url":"https://api.github.com/users/bradobro/following{/other_user}","gists_url":"https://api.github.com/users/bradobro/gists{/gist_id}","starred_url":"https://api.github.com/users/bradobro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradobro/subscriptions","organizations_url":"https://api.github.com/users/bradobro/orgs","repos_url":"https://api.github.com/users/bradobro/repos","events_url":"https://api.github.com/users/bradobro/events{/privacy}","received_events_url":"https://api.github.com/users/bradobro/received_events","type":"User","site_admin":false},"labels":[{"id":401150698,"url":"https://api.github.com/repos/yext/edward/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/yext/edward/milestones/4","html_url":"https://github.com/yext/edward/milestone/4","labels_url":"https://api.github.com/repos/yext/edward/milestones/4/labels","id":2740545,"number":4,"title":"1.8.5","description":"","creator":{"login":"theothertomelliott","id":1131428,"avatar_url":"https://avatars3.githubusercontent.com/u/1131428?v=4","gravatar_id":"","url":"https://api.github.com/users/theothertomelliott","html_url":"https://github.com/theothertomelliott","followers_url":"https://api.github.com/users/theothertomelliott/followers","following_url":"https://api.github.com/users/theothertomelliott/following{/other_user}","gists_url":"https://api.github.com/users/theothertomelliott/gists{/gist_id}","starred_url":"https://api.github.com/users/theothertomelliott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theothertomelliott/subscriptions","organizations_url":"https://api.github.com/users/theothertomelliott/orgs","repos_url":"https://api.github.com/users/theothertomelliott/repos","events_url":"https://api.github.com/users/theothertomelliott/events{/privacy}","received_events_url":"https://api.github.com/users/theothertomelliott/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":4,"state":"open","created_at":"2017-09-02T04:39:08Z","updated_at":"2017-09-19T21:17:28Z","due_on":"2017-09-19T07:00:00Z","closed_at":null},"comments":3,"created_at":"2017-09-19T19:51:24Z","updated_at":"2017-09-20T14:15:16Z","closed_at":null,"author_association":"NONE","body":"### Description\r\n\r\n**Given** I have to orchestrate several development services, some of which cannot live under `$GOPATH`.\r\n**When** I tell a service to watch the non-absolute directory, `lib`\r\n**Then** I expect those directories to be treated as relative to that service's `path`.\r\n**Instead** I see the error, `Could not enable auto-restart: lstat lib: no such file or directory.`\r\n\r\nMy anticipated workaround doesn't help:\r\n\r\n**When** I add an environment variable to make the path absolute: `$LIBDIR/lib`\r\n**And** `LIBDIR` is set to `/home/me/git/numbercruncher`\r\n**Then** I expect the environment variable to be expanded in the watch path: `/home/me/git/numbercruncher/lib`.\r\n**Instead** I see the error, `Could not enable auto-restart: $LIBDIR/lstat lib: no such file or directory.`\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/yext/edward/issues/comments/330865128","html_url":"https://github.com/yext/edward/issues/133#issuecomment-330865128","issue_url":"https://api.github.com/repos/yext/edward/issues/133","id":330865128,"user":{"login":"theothertomelliott","id":1131428,"avatar_url":"https://avatars3.githubusercontent.com/u/1131428?v=4","gravatar_id":"","url":"https://api.github.com/users/theothertomelliott","html_url":"https://github.com/theothertomelliott","followers_url":"https://api.github.com/users/theothertomelliott/followers","following_url":"https://api.github.com/users/theothertomelliott/following{/other_user}","gists_url":"https://api.github.com/users/theothertomelliott/gists{/gist_id}","starred_url":"https://api.github.com/users/theothertomelliott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theothertomelliott/subscriptions","organizations_url":"https://api.github.com/users/theothertomelliott/orgs","repos_url":"https://api.github.com/users/theothertomelliott/repos","events_url":"https://api.github.com/users/theothertomelliott/events{/privacy}","received_events_url":"https://api.github.com/users/theothertomelliott/received_events","type":"User","site_admin":false},"created_at":"2017-09-20T14:15:16Z","updated_at":"2017-09-20T14:15:16Z","author_association":"COLLABORATOR","body":"That sounds like a good candidate. Although the expansion could also be done on loading the config (see the `config` package).\r\n\r\nI'd like to centralize the responsibility for these expansions, but that would probably be a bigger refactoring job, since it's currently spread out across different areas."}}
{"actor":{"display_login":"theothertomelliott"}}