{"record":{"id":"ec2386af442d18b8","repo":"caddyserver/caddy","slug":"no-build-information","errorCode":null,"errorMessage":"no build information","messagePattern":"no build information","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/commandfuncs.go","lineNumber":424,"sourceCode":"\tresp, err := AdminAPIRequest(adminAddr, http.MethodPost, \"/load\", headers, bytes.NewReader(config))\n\tif err != nil {\n\t\treturn caddy.ExitCodeFailedStartup, fmt.Errorf(\"sending configuration to instance: %v\", err)\n\t}\n\tdefer resp.Body.Close()\n\n\treturn caddy.ExitCodeSuccess, nil\n}\n\nfunc cmdVersion(_ Flags) (int, error) {\n\t_, full := caddy.Version()\n\tfmt.Println(full)\n\treturn caddy.ExitCodeSuccess, nil\n}\n\nfunc cmdBuildInfo(_ Flags) (int, error) {\n\tbi, ok := debug.ReadBuildInfo()\n\tif !ok {\n\t\treturn caddy.ExitCodeFailedStartup, fmt.Errorf(\"no build information\")\n\t}\n\tfmt.Println(bi)\n\treturn caddy.ExitCodeSuccess, nil\n}\n\n// jsonModuleInfo holds metadata about a Caddy module for JSON output.\ntype jsonModuleInfo struct {\n\tModuleName string `json:\"module_name\"`\n\tModuleType string `json:\"module_type\"`\n\tVersion    string `json:\"version,omitempty\"`\n\tPackageURL string `json:\"package_url,omitempty\"`\n}\n\nfunc cmdListModules(fl Flags) (int, error) {\n\tpackages := fl.Bool(\"packages\")\n\tversions := fl.Bool(\"versions\")\n\tskipStandard := fl.Bool(\"skip-standard\")\n\tjsonOutput := fl.Bool(\"json\")","sourceCodeStart":406,"sourceCodeEnd":442,"githubUrl":"https://github.com/caddyserver/caddy/blob/50e54ee279aa1e504fe218ca49ab6ae16c100410/cmd/commandfuncs.go#L406-L442","documentation":"Error \"no build information\" thrown in caddyserver/caddy.","triggerScenarios":"Thrown at cmd/commandfuncs.go:424 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use an official Caddy binary built with module info, or rebuild with proper build information embedded."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"50e54ee279aa1e504fe218ca49ab6ae16c100410","analyzedAt":"2026-08-15T09:20:21.641Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}