{"record":{"id":"dae1a730d1e18a8f","repo":"oven-sh/bun","slug":"not-called","errorCode":null,"errorMessage":"not called","messagePattern":"not called","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"bench/emitter/microbench.mjs","lineNumber":39,"sourceCode":"\ngroupForEmitter(\"on x 10_000 (handler)\", ({ EventEmitter, name }) => {\n  const emitter = new EventEmitter();\n\n  bench(name, () => {\n    var cb = event => {\n      event.preventDefault();\n    };\n    emitter.on(\"hey\", cb);\n    var called = false;\n    for (let i = 0; i < 10_000; i++)\n      emitter.emit(\"hey\", {\n        preventDefault() {\n          id++;\n          called = true;\n        },\n      });\n\n    if (!called) throw new Error(\"not called\");\n  });\n});\n\n// for (let { impl: EventEmitter, name, monkey } of []) {\n//   if (monkey) {\n//     var monkeyEmitter = Object.assign({}, EventEmitter.prototype);\n//     monkeyEmitter.on(\"hello\", event => {\n//       event.preventDefault();\n//     });\n\n//     bench(`[monkey] ${className}.emit`, () => {\n//       var called = false;\n//       monkeyEmitter.emit(\"hello\", {\n//         preventDefault() {\n//           id++;\n//           called = true;\n//         },\n//       });","sourceCodeStart":21,"sourceCodeEnd":57,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/bench/emitter/microbench.mjs#L21-L57","documentation":"A git dependency's repository could not be found. It is detected by scanning git's stderr after ls-remote/clone for 'remote: ... not ... found' or 'does not exist' (src/install/repository.rs:384-393); the task layer treats it as a distinct outcome (src/install/PackageManagerTask.rs:426).","triggerScenarios":"`bun add github:owner/repo` (or a git+https/git+ssh URL in package.json) where the repo does not exist, was renamed/deleted, is private without credentials, or the SSH key lacks access (git also reports 'Repository not found' for auth failures).","commonSituations":"Typos in owner/repo or the ref; private repos over HTTPS with no token in CI; a repo renamed after the lockfile was written; expired credentials or a missing deploy key.","solutions":["Verify the URL independently: `git ls-remote <url>` (or open it in a browser)","For private repos, switch to SSH (git@github.com:owner/repo.git) or authenticate via gh/git credential helper","Fix typos in the owner/repo path and pin a full commit SHA or existing tag","If the repo was renamed, update the dependency spec and lockfile to the new location"],"exampleFix":"// before\n\"dep\": \"github:acme/old-name\"\n\n// after (renamed repo, pinned commit, ssh access)\n\"dep\": \"github:acme/new-name#9c8b7a6f5e4d3c2b1a0f9e8d7c6b5a4\"","handlingStrategy":"validation","validationCode":"// Precheck a git dependency before running bun install:\nfunction repoExists(url) {\n  const r = Bun.spawnSync([\"git\", \"ls-remote\", url], { stdout: \"pipe\", stderr: \"pipe\" });\n  return r.exitCode === 0;\n}","typeGuard":"const isWellFormedGitDep = (spec) =>\n  /^(github:|git\\+https?:\\/\\/|git\\+ssh:|https:\\/\\/[^/]+\\/[^/]+\\/[^/]+\\.git)(#.*)?$/.test(spec);","tryCatchPattern":null,"preventionTips":["Run `git ls-remote <url>` once when adding a new git dependency","Give CI a machine user/deploy key for private repos instead of hoping https works","Pin full commit SHAs so renamed repos are still recoverable from the local git cache"],"tags":["git","install","auth","network"],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}