{"record":{"id":"a4fb1e53ea6dc667","repo":"oven-sh/bun","slug":"invalidgiturl","errorCode":"InvalidGitUrl","errorMessage":"InvalidGitUrl","messagePattern":"InvalidGitUrl","errorType":"validation","errorClass":"ParseUrlError","httpStatus":null,"severity":"error","filePath":"src/install/hosted_git_info.rs","lineNumber":78,"sourceCode":"use enum_map::{Enum, EnumMap};\n\n// ──────────────────────────────────────────────────────────────────────────\n// Errors\n// ──────────────────────────────────────────────────────────────────────────\n\n#[derive(thiserror::Error, Debug, Clone, Copy, PartialEq, Eq, strum::IntoStaticStr)]\npub enum HostedGitInfoError {\n    #[error(\"OutOfMemory\")]\n    OutOfMemory,\n    #[error(\"InvalidURL\")]\n    InvalidURL,\n}\n\nbun_core::oom_from_alloc!(HostedGitInfoError);\n\n#[derive(thiserror::Error, Debug, Clone, Copy, PartialEq, Eq, strum::IntoStaticStr)]\npub enum ParseUrlError {\n    #[error(\"InvalidGitUrl\")]\n    InvalidGitUrl,\n    #[error(\"OutOfMemory\")]\n    OutOfMemory,\n}\n\nbun_core::oom_from_alloc!(ParseUrlError);\n\n// ──────────────────────────────────────────────────────────────────────────\n// Representation\n// ──────────────────────────────────────────────────────────────────────────\n\n/// Represents how a URL should be reported when formatting it as a string.\n///\n/// Input strings may be given in any format and they may be formatted in any format. If you wish\n/// to format a URL in a specific format, you can use its `format*` methods. However, each input\n/// string has a \"default\" representation which is used when calling `toString()`. Depending on the\n/// input, the default representation may be different.\n#[derive(Debug, Clone, Copy, PartialEq, Eq, strum::IntoStaticStr)]","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/install/hosted_git_info.rs#L60-L96","documentation":"Error \"InvalidGitUrl\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at src/install/hosted_git_info.rs:78 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":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}