{"action":"created","issue":{"url":"https://api.github.com/repos/mikefrey/node-pac/issues/16","labels_url":"https://api.github.com/repos/mikefrey/node-pac/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/mikefrey/node-pac/issues/16/comments","events_url":"https://api.github.com/repos/mikefrey/node-pac/issues/16/events","html_url":"https://github.com/mikefrey/node-pac/issues/16","id":89155702,"number":16,"title":"OSX -> Ubuntu tar issues","user":{"login":"brycefisher","id":220106,"avatar_url":"https://avatars.githubusercontent.com/u/220106?v=3","gravatar_id":"","url":"https://api.github.com/users/brycefisher","html_url":"https://github.com/brycefisher","followers_url":"https://api.github.com/users/brycefisher/followers","following_url":"https://api.github.com/users/brycefisher/following{/other_user}","gists_url":"https://api.github.com/users/brycefisher/gists{/gist_id}","starred_url":"https://api.github.com/users/brycefisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brycefisher/subscriptions","organizations_url":"https://api.github.com/users/brycefisher/orgs","repos_url":"https://api.github.com/users/brycefisher/repos","events_url":"https://api.github.com/users/brycefisher/events{/privacy}","received_events_url":"https://api.github.com/users/brycefisher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-17T23:51:44Z","updated_at":"2015-06-18T15:57:22Z","closed_at":null,"body":"Dear @mikefrey,\r\n\r\nYou are amazing. This module rocks my face. \r\n\r\nSadly, gnu-tar and bsd-tar do not rock my face. We're using `tar -zxf` as a npm run-script to \"unpac\" our ./modules/*.tgz during our deploy. \r\n\r\nThe problem is that so many warnings are thrown by Ubuntu's gnutar about unknown headers, that it creates a lot of noise in our console during the deploy. In fact, so much memory is used to display these warnings that our socket's stderr maxBuffer is exceeded and our deployments crash.\r\n\r\n![Ignoring unknown extended header keyword errors that go on for thousands of lines](https://cloud.githubusercontent.com/assets/220106/8221210/4d6035c0-1510-11e5-812b-8e48c583c597.png)\r\n\r\nAs a quickfix, [we're using the (gnu-tar only) flag `--warning=no-unknown-keyword`]( http://superuser.com/questions/318809/linux-os-x-tar-incompatibility-tarballs-created-on-os-x-give-errors-when-unt/688231#688231), but it this means other developers will either have to use a different npm run script (duplication, training, and maintenance overhead), OR we'll have to make the script compatible across various OSes. We'd love to dockerize, but its tough to get the runway for this.\r\n\r\nThe ideal solution, however, would be to *not* include the extended header keywords in the first place. Then both gnu-tar and bsd-tar could extract the files without complaining. I tried just setting an environment flag as `COPYFILE_DISABLE=1`, but that didn't seem to stop the headers from appearing :'("},"comment":{"url":"https://api.github.com/repos/mikefrey/node-pac/issues/comments/113200385","html_url":"https://github.com/mikefrey/node-pac/issues/16#issuecomment-113200385","issue_url":"https://api.github.com/repos/mikefrey/node-pac/issues/16","id":113200385,"user":{"login":"mikefrey","id":62940,"avatar_url":"https://avatars.githubusercontent.com/u/62940?v=3","gravatar_id":"","url":"https://api.github.com/users/mikefrey","html_url":"https://github.com/mikefrey","followers_url":"https://api.github.com/users/mikefrey/followers","following_url":"https://api.github.com/users/mikefrey/following{/other_user}","gists_url":"https://api.github.com/users/mikefrey/gists{/gist_id}","starred_url":"https://api.github.com/users/mikefrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikefrey/subscriptions","organizations_url":"https://api.github.com/users/mikefrey/orgs","repos_url":"https://api.github.com/users/mikefrey/repos","events_url":"https://api.github.com/users/mikefrey/events{/privacy}","received_events_url":"https://api.github.com/users/mikefrey/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T15:57:21Z","updated_at":"2015-06-18T15:57:21Z","body":"@brycefisher pac doesn't use OSX's `tar` command. It uses a pure JS tar implementation: https://www.npmjs.com/package/tar\r\n\r\nI'm not sure there is a way to disable extended header keywords in node-tar. If you find a way, I'd be happy to accept a PR fixing it."}}