{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/gulp-zip/issues/50","labels_url":"https://api.github.com/repos/sindresorhus/gulp-zip/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/gulp-zip/issues/50/comments","events_url":"https://api.github.com/repos/sindresorhus/gulp-zip/issues/50/events","html_url":"https://github.com/sindresorhus/gulp-zip/issues/50","id":65469716,"number":50,"title":"empty metadataPath error","user":{"login":"adam-lynch","id":1427241,"avatar_url":"https://avatars.githubusercontent.com/u/1427241?v=3","gravatar_id":"","url":"https://api.github.com/users/adam-lynch","html_url":"https://github.com/adam-lynch","followers_url":"https://api.github.com/users/adam-lynch/followers","following_url":"https://api.github.com/users/adam-lynch/following{/other_user}","gists_url":"https://api.github.com/users/adam-lynch/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-lynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-lynch/subscriptions","organizations_url":"https://api.github.com/users/adam-lynch/orgs","repos_url":"https://api.github.com/users/adam-lynch/repos","events_url":"https://api.github.com/users/adam-lynch/events{/privacy}","received_events_url":"https://api.github.com/users/adam-lynch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-31T14:50:35Z","updated_at":"2015-03-31T16:37:15Z","closed_at":null,"body":"I was trying to confirm that #38 is fixed but I got this:\r\n\r\n```shell\r\n/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp-zip/node_modules/yazl/index.js:230\r\n  if (metadataPath === \"\") throw new Error(\"empty metadataPath\");\r\n                                 ^\r\nError: empty metadataPath\r\n  at validateMetadataPath (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp-zip/node_modules/yazl/index.js:230:34)\r\n  at ZipFile.addBuffer (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp-zip/node_modules/yazl/index.js:61:18)\r\n  at DestroyableTransform.through.obj.zip.end.zip.outputStream.pipe.concatStream.push.gutil.File.cwd [as _transform] (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp-zip/index.js:33:7)\r\n  at DestroyableTransform.Transform._read (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp-zip/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)\r\n  at DestroyableTransform.Transform._write (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp-zip/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)\r\n  at doWrite (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp-zip/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)\r\n  at writeOrBuffer (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp-zip/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)\r\n  at DestroyableTransform.Writable.write (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp-zip/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)\r\n  at write (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)\r\n  at flow (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)\r\n  at DestroyableTransform.pipeOnReadable (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:664:5)\r\n  at DestroyableTransform.EventEmitter.emit (events.js:92:17)\r\n  at emitReadable_ (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:448:10)\r\n  at emitReadable (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:444:5)\r\n  at readableAddChunk (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:187:9)\r\n  at DestroyableTransform.Readable.push (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:149:10)\r\n  at DestroyableTransform.Transform.push (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:145:32)\r\n  at afterTransform (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:101:12)\r\n  at TransformState.afterTransform (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:79:12)\r\n  at DestroyableTransform.noop [as _transform] (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/through2.js:26:3)\r\n  at DestroyableTransform.Transform._read (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)\r\n  at DestroyableTransform.Transform._write (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)\r\n  at doWrite (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)\r\n  at writeOrBuffer (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)\r\n  at DestroyableTransform.Writable.write (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)\r\n  at write (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)\r\n  at flow (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)\r\n  at DestroyableTransform.pipeOnReadable (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:664:5)\r\n  at DestroyableTransform.EventEmitter.emit (events.js:92:17)\r\n  at emitReadable_ (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:448:10)\r\n  at emitReadable (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:444:5)\r\n  at readableAddChunk (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:187:9)\r\n  at DestroyableTransform.Readable.push (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:149:10)\r\n  at DestroyableTransform.Transform.push (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:145:32)\r\n  at afterTransform (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:101:12)\r\n  at TransformState.afterTransform (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:79:12)\r\n  at readDir (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/lib/src/getContents/readDir.js:5:3)\r\n  at DestroyableTransform._transform (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/lib/src/getContents/index.js:13:14)\r\n  at DestroyableTransform.Transform._read (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)\r\n  at DestroyableTransform.Transform._write (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)\r\n  at doWrite (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)\r\n  at writeOrBuffer (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)\r\n  at DestroyableTransform.Writable.write (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)\r\n  at write (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)\r\n  at flow (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)\r\n  at DestroyableTransform.pipeOnReadable (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:664:5)\r\n  at DestroyableTransform.EventEmitter.emit (events.js:92:17)\r\n  at emitReadable_ (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:448:10)\r\n  at emitReadable (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:444:5)\r\n  at readableAddChunk (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:187:9)\r\n  at DestroyableTransform.Readable.push (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:149:10)\r\n  at DestroyableTransform.Transform.push (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:145:32)\r\n  at afterTransform (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:101:12)\r\n  at TransformState.afterTransform (/Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:79:12)\r\n  at /Users/adam/Code/GitHub/teamwork-chat-client/node_modules/gulp/node_modules/vinyl-fs/lib/src/getStats.js:15:5\r\n  at Object.oncomplete (evalmachine.<anonymous>:107:15)\r\n```\r\n\r\ncc @kevva "},"comment":{"url":"https://api.github.com/repos/sindresorhus/gulp-zip/issues/comments/88163510","html_url":"https://github.com/sindresorhus/gulp-zip/issues/50#issuecomment-88163510","issue_url":"https://api.github.com/repos/sindresorhus/gulp-zip/issues/50","id":88163510,"user":{"login":"kevva","id":709159,"avatar_url":"https://avatars.githubusercontent.com/u/709159?v=3","gravatar_id":"","url":"https://api.github.com/users/kevva","html_url":"https://github.com/kevva","followers_url":"https://api.github.com/users/kevva/followers","following_url":"https://api.github.com/users/kevva/following{/other_user}","gists_url":"https://api.github.com/users/kevva/gists{/gist_id}","starred_url":"https://api.github.com/users/kevva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevva/subscriptions","organizations_url":"https://api.github.com/users/kevva/orgs","repos_url":"https://api.github.com/users/kevva/repos","events_url":"https://api.github.com/users/kevva/events{/privacy}","received_events_url":"https://api.github.com/users/kevva/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T16:37:15Z","updated_at":"2015-03-31T16:37:15Z","body":"Well, the error suggests that. The `metadataPath` is `pathname` on [this](https://github.com/sindresorhus/gulp-zip/blob/master/index.js#L34) and [this](https://github.com/sindresorhus/gulp-zip/blob/master/index.js#L39) line."}}