{"record":{"id":"24ba7889c0b4f4b9","repo":"windmill-labs/windmill","slug":"repository-repository-not-found","errorCode":null,"errorMessage":"Repository ${repository} not found","messagePattern":"Repository (.+?) not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/gitsync-settings/utils.ts","lineNumber":96,"sourceCode":"  return updatedConfig;\n}\n\n// Select repository interactively if multiple exist\nexport async function selectAndLogRepository(\n  repositories: GitSyncRepository[],\n  repository?: string,\n  suppressLogs?: boolean,\n): Promise<GitSyncRepository> {\n  let selectedRepo: GitSyncRepository;\n\n  if (repository) {\n    const found = repositories.find(\n      (r: GitSyncRepository) =>\n        r.git_repo_resource_path === repository ||\n        r.git_repo_resource_path === `$res:${repository}`,\n    );\n    if (!found) {\n      throw new Error(`Repository ${repository} not found`);\n    }\n    selectedRepo = found;\n    const repoPath = selectedRepo.git_repo_resource_path.replace(/^\\$res:/, \"\");\n    if (!suppressLogs) {\n      log.info(colors.cyan(`Using repository: ${colors.bold(repoPath)}`));\n    }\n  } else {\n    selectedRepo = await selectRepository(repositories);\n  }\n\n  return selectedRepo;\n}\n\n// Generate structured diff showing field changes\nexport function generateStructuredDiff(\n  current: any,\n  backend: any,\n): { [key: string]: { from: any; to: any } } {","sourceCodeStart":78,"sourceCodeEnd":114,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/cli/src/commands/gitsync-settings/utils.ts#L78-L114","documentation":"Lookup miss in selectAndLogRepository: an explicit repository argument was given (matched against git_repo_resource_path, with and without the $res: prefix) but no configured repository in the local git-sync config matches it. The input at fault is the repository identifier passed on the command line versus the repositories list in gitsync-settings config; usually a typo, a missing $res: prefix form, or the repository simply not being configured locally.","triggerScenarios":"Thrown at cli/src/commands/gitsync-settings/utils.ts:96 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["List configured repositories (wmill gitsync-settings show or read the local config) and use the exact git_repo_resource_path","Try the resource path with and without the $res: prefix — the matcher accepts both forms, so a real mismatch is likely a typo","Add the repository to the git-sync config first if it isn't configured yet"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}