{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/npm-lockdown/issues/46","labels_url":"https://api.github.com/repos/mozilla/npm-lockdown/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/npm-lockdown/issues/46/comments","events_url":"https://api.github.com/repos/mozilla/npm-lockdown/issues/46/events","html_url":"https://github.com/mozilla/npm-lockdown/issues/46","id":110316223,"number":46,"title":"Error during lockdown-relock for a large set of deps","user":{"login":"pmclanahan","id":19934,"avatar_url":"https://avatars.githubusercontent.com/u/19934?v=3","gravatar_id":"","url":"https://api.github.com/users/pmclanahan","html_url":"https://github.com/pmclanahan","followers_url":"https://api.github.com/users/pmclanahan/followers","following_url":"https://api.github.com/users/pmclanahan/following{/other_user}","gists_url":"https://api.github.com/users/pmclanahan/gists{/gist_id}","starred_url":"https://api.github.com/users/pmclanahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmclanahan/subscriptions","organizations_url":"https://api.github.com/users/pmclanahan/orgs","repos_url":"https://api.github.com/users/pmclanahan/repos","events_url":"https://api.github.com/users/pmclanahan/events{/privacy}","received_events_url":"https://api.github.com/users/pmclanahan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-07T21:03:41Z","updated_at":"2015-10-08T14:27:01Z","closed_at":"2015-10-08T14:24:36Z","body":"Trying to use lockdown for [bedrock](https://github.com/mozilla/bedrock/) but am running into the following:\r\n\r\n```bash\r\n$ node_modules/.bin/lockdown-relock\r\nmodule.js:134\r\n  var cacheKey = JSON.stringify({request: request, paths: paths});\r\n                      ^\r\n\r\nRangeError: Maximum call stack size exceeded\r\n    at Object.stringify (native)\r\n    at Function.Module._findPath (module.js:134:23)\r\n    at Function.Module._resolveFilename (module.js:334:25)\r\n    at Function.Module._load (module.js:286:25)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at getShasum (/Users/pmclanahan/Projects/bedrock/node_modules/lockdown/relock.js:100:15)\r\n    at walk (/Users/pmclanahan/Projects/bedrock/node_modules/lockdown/relock.js:71:14)\r\n    at /Users/pmclanahan/Projects/bedrock/node_modules/lockdown/relock.js:80:7\r\n    at Array.forEach (native)\r\n```\r\n\r\nGranted, [bedrock's deps list](https://github.com/mozilla/bedrock/blob/634ac47808b27f0ff520025d95549c2eed3dcadd/package.json) is large and some have large deps lists themselves, but it can't be the biggest. I'd really like to only use lockdown for `dependencies` and not `devDependencies`, but I don't see how to only apply the preinstall hook for `npm install --production`."},"comment":{"url":"https://api.github.com/repos/mozilla/npm-lockdown/issues/comments/146562978","html_url":"https://github.com/mozilla/npm-lockdown/issues/46#issuecomment-146562978","issue_url":"https://api.github.com/repos/mozilla/npm-lockdown/issues/46","id":146562978,"user":{"login":"vladikoff","id":128755,"avatar_url":"https://avatars.githubusercontent.com/u/128755?v=3","gravatar_id":"","url":"https://api.github.com/users/vladikoff","html_url":"https://github.com/vladikoff","followers_url":"https://api.github.com/users/vladikoff/followers","following_url":"https://api.github.com/users/vladikoff/following{/other_user}","gists_url":"https://api.github.com/users/vladikoff/gists{/gist_id}","starred_url":"https://api.github.com/users/vladikoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladikoff/subscriptions","organizations_url":"https://api.github.com/users/vladikoff/orgs","repos_url":"https://api.github.com/users/vladikoff/repos","events_url":"https://api.github.com/users/vladikoff/events{/privacy}","received_events_url":"https://api.github.com/users/vladikoff/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T14:27:01Z","updated_at":"2015-10-08T14:27:01Z","body":"@seanmonstar we might need to release the latest version on npm \r\n"}}