{"action":"created","issue":{"url":"https://api.github.com/repos/fsprojects/Paket/issues/1503","repository_url":"https://api.github.com/repos/fsprojects/Paket","labels_url":"https://api.github.com/repos/fsprojects/Paket/issues/1503/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/Paket/issues/1503/comments","events_url":"https://api.github.com/repos/fsprojects/Paket/issues/1503/events","html_url":"https://github.com/fsprojects/Paket/issues/1503","id":139422492,"number":1503,"title":"No way to set the source encoding when using Paket Pack","user":{"login":"galaxystar","id":4299340,"avatar_url":"https://avatars.githubusercontent.com/u/4299340?v=3","gravatar_id":"","url":"https://api.github.com/users/galaxystar","html_url":"https://github.com/galaxystar","followers_url":"https://api.github.com/users/galaxystar/followers","following_url":"https://api.github.com/users/galaxystar/following{/other_user}","gists_url":"https://api.github.com/users/galaxystar/gists{/gist_id}","starred_url":"https://api.github.com/users/galaxystar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galaxystar/subscriptions","organizations_url":"https://api.github.com/users/galaxystar/orgs","repos_url":"https://api.github.com/users/galaxystar/repos","events_url":"https://api.github.com/users/galaxystar/events{/privacy}","received_events_url":"https://api.github.com/users/galaxystar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-08T23:13:30Z","updated_at":"2016-03-09T18:21:24Z","closed_at":null,"body":"I'm receiving an error when pushing a nuget package to my Nexus repository. This package is built using ``Paket Pack output ./``. I use the exact same command on other packages, and there are no issues. After some research I've narrowed it down to the error below; ZipException invalid stored block lengths. Which seems to be associated with the source encoding. I see that paket supports preserving nuget's source encoding when converting a nuget package, but I do not see anything for specifying it when packaging. \r\n\r\nIt would be nice if we could specify the encoding in the package template and/or on the command line.\r\n\r\nError: \r\n```\r\njvm 1    | Caused by: java.util.zip.ZipException: invalid stored block lengths\r\njvm 1    | \tat java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164) ~[na:1.8.0_45]\r\njvm 1    | \tat java.util.zip.ZipInputStream.read(ZipInputStream.java:194) ~[na:1.8.0_45]\r\njvm 1    | \tat java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:140) ~[na:1.8.0_45]\r\njvm 1    | \tat java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:118) ~[na:1.8.0_45]\r\njvm 1    | \tat com.sonatype.nexus.plugins.nuget.odata.NuspecSplicer.extractNuspec(NuspecSplicer.java:133) ~[na:na]\r\n````\r\n\r\nReference: http://stackoverflow.com/questions/25235229/extracting-zipped-file-from-resourcestream-throws-error-invalid-stored-block-le\r\n\r\nReproduction steps:\r\n1. Make a package from here: https://github.com/amplitude/unity-plugin/tree/master/Assets\r\n2. And attempt to upload the package to a nexus server ~v2.12. \r\nNote: Unzipping on the command line seems to understand it fine.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/fsprojects/Paket/issues/comments/194435392","html_url":"https://github.com/fsprojects/Paket/issues/1503#issuecomment-194435392","issue_url":"https://api.github.com/repos/fsprojects/Paket/issues/1503","id":194435392,"user":{"login":"galaxystar","id":4299340,"avatar_url":"https://avatars.githubusercontent.com/u/4299340?v=3","gravatar_id":"","url":"https://api.github.com/users/galaxystar","html_url":"https://github.com/galaxystar","followers_url":"https://api.github.com/users/galaxystar/followers","following_url":"https://api.github.com/users/galaxystar/following{/other_user}","gists_url":"https://api.github.com/users/galaxystar/gists{/gist_id}","starred_url":"https://api.github.com/users/galaxystar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galaxystar/subscriptions","organizations_url":"https://api.github.com/users/galaxystar/orgs","repos_url":"https://api.github.com/users/galaxystar/repos","events_url":"https://api.github.com/users/galaxystar/events{/privacy}","received_events_url":"https://api.github.com/users/galaxystar/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T18:21:24Z","updated_at":"2016-03-09T18:21:24Z","body":"I'm not sure, none of the files seem to use any non ANSI characters worth encoding. I only suggest being able to specify the encoding because that's how other package managers seemed to get around this issue. Something that \"just works\" would be ideal, but I expect that it would also be harder to implement with more edge cases."}}