Re: [go-nuts] How to debug "Not a valid zip file" from zip.OpenReader

2022-02-23 Thread Kurtis Rader
On Wed, Feb 23, 2022 at 8:04 PM Mine GO BOOM wrote: > The core library should be safe and strict. It wouldn't be hard to clone > the library and make a more lenient version to be used by people who like > to append zip files to the end of images >

Re: [go-nuts] How to debug "Not a valid zip file" from zip.OpenReader

2022-02-23 Thread Mine GO BOOM
The core library should be safe and strict. It wouldn't be hard to clone the library and make a more lenient version to be used by people who like to append zip files to the end of images . On Wednesday, February 23, 2022 at 6

Re: [go-nuts] How to debug "Not a valid zip file" from zip.OpenReader

2022-02-23 Thread Kurtis Rader
On Wed, Feb 23, 2022 at 6:17 PM Pablo Caballero wrote: > The file you are trying to unzip contains "garbage" at the beginning. > That garbage looks like the sort of HTTP transaction information you'll get from `curl -v` or something similar. In other words, someone inadvertently inserted "garbag

Re: [go-nuts] How to debug "Not a valid zip file" from zip.OpenReader

2022-02-23 Thread David Karr
Ok. I did that. https://github.com/golang/go/issues/51337 . On Wed, Feb 23, 2022 at 4:20 PM Ian Lance Taylor wrote: > On Wed, Feb 23, 2022 at 1:46 PM David Karr > wrote: > > > > A while ago, I wrote a small Go app that reads things from zip files. I > tested it with various zip files (usually

Re: [go-nuts] How to debug "Not a valid zip file" from zip.OpenReader

2022-02-23 Thread Ian Lance Taylor
On Wed, Feb 23, 2022 at 1:46 PM David Karr wrote: > > A while ago, I wrote a small Go app that reads things from zip files. I > tested it with various zip files (usually Java jar files), and it has always > worked perfectly fine. > > Today I'm looking at another jar file. The Java "jar" comman