{"action":"created","issue":{"url":"https://api.github.com/repos/winfinit/mongodb-prebuilt/issues/22","repository_url":"https://api.github.com/repos/winfinit/mongodb-prebuilt","labels_url":"https://api.github.com/repos/winfinit/mongodb-prebuilt/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/winfinit/mongodb-prebuilt/issues/22/comments","events_url":"https://api.github.com/repos/winfinit/mongodb-prebuilt/issues/22/events","html_url":"https://github.com/winfinit/mongodb-prebuilt/issues/22","id":145641391,"number":22,"title":"dist_path.txt is not vcs friendly and maybe unnecessary.","user":{"login":"ReneGa","id":1663863,"avatar_url":"https://avatars.githubusercontent.com/u/1663863?v=3","gravatar_id":"","url":"https://api.github.com/users/ReneGa","html_url":"https://github.com/ReneGa","followers_url":"https://api.github.com/users/ReneGa/followers","following_url":"https://api.github.com/users/ReneGa/following{/other_user}","gists_url":"https://api.github.com/users/ReneGa/gists{/gist_id}","starred_url":"https://api.github.com/users/ReneGa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReneGa/subscriptions","organizations_url":"https://api.github.com/users/ReneGa/orgs","repos_url":"https://api.github.com/users/ReneGa/repos","events_url":"https://api.github.com/users/ReneGa/events{/privacy}","received_events_url":"https://api.github.com/users/ReneGa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-04T10:15:18Z","updated_at":"2016-04-04T12:13:30Z","closed_at":null,"body":"dist_path.txt references the absolute path to dist/ on installation. The issue is, when pulled from a vcs, it is most likely wrong and mongodb-prebuilt will not run.\r\n\r\nThis could be fixed by not reading from a textfile at all, but use __dirname + './dist/' instead, which should always give the correct path to dist/."},"comment":{"url":"https://api.github.com/repos/winfinit/mongodb-prebuilt/issues/comments/205271034","html_url":"https://github.com/winfinit/mongodb-prebuilt/issues/22#issuecomment-205271034","issue_url":"https://api.github.com/repos/winfinit/mongodb-prebuilt/issues/22","id":205271034,"user":{"login":"winfinit","id":1187417,"avatar_url":"https://avatars.githubusercontent.com/u/1187417?v=3","gravatar_id":"","url":"https://api.github.com/users/winfinit","html_url":"https://github.com/winfinit","followers_url":"https://api.github.com/users/winfinit/followers","following_url":"https://api.github.com/users/winfinit/following{/other_user}","gists_url":"https://api.github.com/users/winfinit/gists{/gist_id}","starred_url":"https://api.github.com/users/winfinit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winfinit/subscriptions","organizations_url":"https://api.github.com/users/winfinit/orgs","repos_url":"https://api.github.com/users/winfinit/repos","events_url":"https://api.github.com/users/winfinit/events{/privacy}","received_events_url":"https://api.github.com/users/winfinit/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T12:13:30Z","updated_at":"2016-04-04T12:13:30Z","body":"@ReneGa thank you for reporting this issue, dist_path should actually not be in a version control at all, it is created during installation process, and gitignore excludes it. I need to look now why i didn't use __dirname, I think it is because you can specify your own list path through options in mongoldb-download, but Ill check it out to post more accurate update to this."}}