{"record":{"id":"849751dc24668554","repo":"golang/go","slug":"duplicate-entries-in-zip-file","errorCode":null,"errorMessage":": duplicate entries in zip file","messagePattern":": duplicate entries in zip file","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/archive/zip/reader.go","lineNumber":739,"sourceCode":"}\n\n// A fileListEntry is a File and its ename.\n// If file == nil, the fileListEntry describes a directory without metadata.\ntype fileListEntry struct {\n\tname  string\n\tfile  *File\n\tisDir bool\n\tisDup bool\n}\n\ntype fileInfoDirEntry interface {\n\tfs.FileInfo\n\tfs.DirEntry\n}\n\nfunc (f *fileListEntry) stat() (fileInfoDirEntry, error) {\n\tif f.isDup {\n\t\treturn nil, errors.New(f.name + \": duplicate entries in zip file\")\n\t}\n\tif !f.isDir {\n\t\treturn headerFileInfo{&f.file.FileHeader}, nil\n\t}\n\treturn f, nil\n}\n\n// Only used for directories.\nfunc (f *fileListEntry) Name() string      { _, elem, _ := split(f.name); return elem }\nfunc (f *fileListEntry) Size() int64       { return 0 }\nfunc (f *fileListEntry) Mode() fs.FileMode { return fs.ModeDir | 0555 }\nfunc (f *fileListEntry) Type() fs.FileMode { return fs.ModeDir }\nfunc (f *fileListEntry) IsDir() bool       { return true }\nfunc (f *fileListEntry) Sys() any          { return nil }\n\nfunc (f *fileListEntry) ModTime() time.Time {\n\tif f.file == nil {\n\t\treturn time.Time{}","sourceCodeStart":721,"sourceCodeEnd":757,"githubUrl":"https://github.com/golang/go/blob/b6b368adc57c96c3151d224d172029f233ead2c3/src/archive/zip/reader.go#L721-L757","documentation":"Error \": duplicate entries in zip file\" thrown in golang/go.","triggerScenarios":"Thrown at src/archive/zip/reader.go:739 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b6b368adc57c96c3151d224d172029f233ead2c3","analyzedAt":"2026-08-12T00:22:02.250Z","schemaVersion":2},"datasetVersion":"2026-08-12T12:31:55.035Z"}