{"record":{"id":"5d999ec459c14b61","repo":"golang/go","slug":"errlongname","errorCode":"errLongName","errorMessage":"zip: FileHeader.Name too long","messagePattern":"zip: FileHeader\\.Name too long","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/archive/zip/writer.go","lineNumber":20,"sourceCode":"// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file.\n\npackage zip\n\nimport (\n\t\"bufio\"\n\t\"encoding/binary\"\n\t\"errors\"\n\t\"hash\"\n\t\"hash/crc32\"\n\t\"io\"\n\t\"io/fs\"\n\t\"strings\"\n\t\"unicode/utf8\"\n)\n\nvar (\n\terrLongName  = errors.New(\"zip: FileHeader.Name too long\")\n\terrLongExtra = errors.New(\"zip: FileHeader.Extra too long\")\n)\n\n// Writer implements a zip file writer.\ntype Writer struct {\n\tcw          *countWriter\n\tdir         []*header\n\tlast        *fileWriter\n\tclosed      bool\n\tcompressors map[uint16]Compressor\n\tcomment     string\n\n\t// testHookCloseSizeOffset if non-nil is called with the size\n\t// of offset of the central directory at Close.\n\ttestHookCloseSizeOffset func(size, offset uint64)\n}\n\ntype header struct {","sourceCodeStart":2,"sourceCodeEnd":38,"githubUrl":"https://github.com/golang/go/blob/b6b368adc57c96c3151d224d172029f233ead2c3/src/archive/zip/writer.go#L2-L38","documentation":"Error \"zip: FileHeader.Name too long\" thrown in golang/go.","triggerScenarios":"Thrown at src/archive/zip/writer.go:20 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"b6b368adc57c96c3151d224d172029f233ead2c3","analyzedAt":"2026-08-12T00:22:02.250Z","schemaVersion":2},"datasetVersion":"2026-08-12T06:17:24.410Z"}