{"record":{"id":"488dd9198d20dc43","repo":"ruvnet/ruflo","slug":"gh-release-download-failed-exit-result-exitcode","errorCode":null,"errorMessage":"gh release download failed (exit ${result.exitCode}): ${result.stderr || result.stdout}","messagePattern":"gh release download failed \\(exit (.+?)\\): (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/cli/src/proxy/release.ts","lineNumber":121,"sourceCode":"  const exec = await ghExecutor();\n  const result = await exec.execute('gh', [\n    'release',\n    'download',\n    `v${version}`,\n    '--repo',\n    GH_REPO,\n    '--dir',\n    destDir,\n    '--pattern',\n    archiveFilename,\n    '--pattern',\n    'SHA256SUMS',\n    '--pattern',\n    'SHA256SUMS.sig',\n    '--clobber',\n  ]);\n  if (result.exitCode !== 0) {\n    throw new Error(`gh release download failed (exit ${result.exitCode}): ${result.stderr || result.stdout}`);\n  }\n\n  const { readFile } = await import('node:fs/promises');\n  const { join } = await import('node:path');\n  const [archiveBytes, sumsBytes, sigRaw] = await Promise.all([\n    readFile(join(destDir, archiveFilename)),\n    readFile(join(destDir, 'SHA256SUMS')),\n    readFile(join(destDir, 'SHA256SUMS.sig'), 'utf-8'),\n  ]);\n  return { archiveBytes, archiveFilename, sumsBytes, sigBase64: sigRaw.trim() };\n}\n\n/**\n * Production download path — a Cognitum-owned, auth-mediated release-proxy\n * endpoint. Not implemented: no such endpoint exists in the confirmed\n * OpenAPI contract today. Throws a clear, specific error rather than\n * silently falling back to the dev path, so a real user hitting this isn't\n * left guessing whether it's their environment or a genuine gap.","sourceCodeStart":103,"sourceCodeEnd":139,"githubUrl":"https://github.com/ruvnet/ruflo/blob/6b01dc5a687b26b3e218f796de45ec51f8fa9e8c/v3/@claude-flow/cli/src/proxy/release.ts#L103-L139","documentation":"Error \"gh release download failed (exit ${result.exitCode}): ${result.stderr || result.stdout}\" thrown in ruvnet/ruflo.","triggerScenarios":"Thrown at v3/@claude-flow/cli/src/proxy/release.ts:121 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":"6b01dc5a687b26b3e218f796de45ec51f8fa9e8c","analyzedAt":"2026-08-12T13:20:50.148Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}