{"action":"created","issue":{"url":"https://api.github.com/repos/substack/module-deps/issues/81","labels_url":"https://api.github.com/repos/substack/module-deps/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/substack/module-deps/issues/81/comments","events_url":"https://api.github.com/repos/substack/module-deps/issues/81/events","html_url":"https://github.com/substack/module-deps/pull/81","id":69676306,"number":81,"title":"Fix __dirname sometimes pointing to wrong package","user":{"login":"pmowrer","id":356320,"avatar_url":"https://avatars.githubusercontent.com/u/356320?v=3","gravatar_id":"","url":"https://api.github.com/users/pmowrer","html_url":"https://github.com/pmowrer","followers_url":"https://api.github.com/users/pmowrer/followers","following_url":"https://api.github.com/users/pmowrer/following{/other_user}","gists_url":"https://api.github.com/users/pmowrer/gists{/gist_id}","starred_url":"https://api.github.com/users/pmowrer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmowrer/subscriptions","organizations_url":"https://api.github.com/users/pmowrer/orgs","repos_url":"https://api.github.com/users/pmowrer/repos","events_url":"https://api.github.com/users/pmowrer/events{/privacy}","received_events_url":"https://api.github.com/users/pmowrer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-20T20:44:25Z","updated_at":"2015-04-30T03:00:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/substack/module-deps/pulls/81","html_url":"https://github.com/substack/module-deps/pull/81","diff_url":"https://github.com/substack/module-deps/pull/81.diff","patch_url":"https://github.com/substack/module-deps/pull/81.patch"},"body":"The bug appears to be due to a race condition. As such, it was difficult writing a test. The one I came up with fails reasonably consistently at about 1/3 of the time on my machine."},"comment":{"url":"https://api.github.com/repos/substack/module-deps/issues/comments/97644548","html_url":"https://github.com/substack/module-deps/pull/81#issuecomment-97644548","issue_url":"https://api.github.com/repos/substack/module-deps/issues/81","id":97644548,"user":{"login":"pmowrer","id":356320,"avatar_url":"https://avatars.githubusercontent.com/u/356320?v=3","gravatar_id":"","url":"https://api.github.com/users/pmowrer","html_url":"https://github.com/pmowrer","followers_url":"https://api.github.com/users/pmowrer/followers","following_url":"https://api.github.com/users/pmowrer/following{/other_user}","gists_url":"https://api.github.com/users/pmowrer/gists{/gist_id}","starred_url":"https://api.github.com/users/pmowrer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmowrer/subscriptions","organizations_url":"https://api.github.com/users/pmowrer/orgs","repos_url":"https://api.github.com/users/pmowrer/repos","events_url":"https://api.github.com/users/pmowrer/events{/privacy}","received_events_url":"https://api.github.com/users/pmowrer/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T03:00:02Z","updated_at":"2015-04-30T03:00:02Z","body":"Thanks for the update @zertosh. It's a major problem imo as this prevents bundle outputs from being deterministic (which is one of the major goals of `module-deps` in the first place). When running the tests for our plugin (https://github.com/Updater/browserify-resolutions), at least one fails ~50% of the time the tests are run. With the proposed fix, the tests are 100% reliable."}}