{"record":{"id":"356df1ec49083968","repo":"ipfs/kubo","slug":"s-not-found-in-zip","errorCode":null,"errorMessage":"%s not found in zip","messagePattern":"(.+?) not found in zip","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/commands/update.go","lineNumber":820,"sourceCode":"\tfor _, f := range zr.File {\n\t\tif f.Name != lookFor {\n\t\t\tcontinue\n\t\t}\n\t\trc, err := f.Open()\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tresult, err := io.ReadAll(io.LimitReader(rc, maxBinarySize+1))\n\t\trc.Close()\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tif int64(len(result)) > maxBinarySize {\n\t\t\treturn nil, fmt.Errorf(\"extracted binary exceeds maximum size of %d bytes\", maxBinarySize)\n\t\t}\n\t\treturn result, nil\n\t}\n\treturn nil, fmt.Errorf(\"%s not found in zip\", lookFor)\n}\n\n// trimVPrefix removes a leading \"v\" from a version string.\nfunc trimVPrefix(s string) string {\n\treturn strings.TrimPrefix(s, \"v\")\n}\n\n// normalizeVersion ensures a version string has a \"v\" prefix (for GitHub tags).\nfunc normalizeVersion(s string) string {\n\ts = strings.TrimSpace(s)\n\tif !strings.HasPrefix(s, \"v\") {\n\t\treturn \"v\" + s\n\t}\n\treturn s\n}\n\n// isNewerVersion returns true if target is newer than current.\nfunc isNewerVersion(current, target string) (bool, error) {","sourceCodeStart":802,"sourceCodeEnd":838,"githubUrl":"https://github.com/ipfs/kubo/blob/329838acdfafae224582930457efe80aa217afc0/core/commands/update.go#L802-L838","documentation":"Fired by the kubo self-update flow in extractFromZip when the downloaded zip archive contains no file matching the expected binary name. Same cause as the tar.gz variant: the release asset does not contain the expected platform binary, so extraction cannot proceed.","triggerScenarios":"Thrown at core/commands/update.go:820 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry later; CI may still be uploading build artifacts","Verify the release has a binary for this OS/arch","Install manually from dist.ipfs.tech"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"329838acdfafae224582930457efe80aa217afc0","analyzedAt":"2026-09-03T18:30:52.135Z","contentChangedAt":"2026-09-03T18:30:52.135Z","schemaVersion":2},"datasetVersion":"2026-09-11T00:17:11.886Z"}