{"record":{"id":"3a44a0eb7e42375c","repo":"golangci/golangci-lint","slug":"s-w","errorCode":null,"errorMessage":"%s: %w","messagePattern":"%s: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/commands/internal/builder.go","lineNumber":105,"sourceCode":"\n\treturn nil\n}\n\nfunc (b Builder) clone(ctx context.Context) error {\n\t//nolint:gosec // the variable is sanitized.\n\tcmd := exec.CommandContext(ctx,\n\t\t\"git\", \"clone\", \"--branch\", sanitizeVersion(b.cfg.Version),\n\t\t\"--single-branch\", \"--depth\", \"1\", \"-c\", \"advice.detachedHead=false\", \"-q\",\n\t\t\"https://github.com/golangci/golangci-lint.git\",\n\t)\n\tcmd.Dir = b.root\n\tcmd.Env = filterGitEnviron(os.Environ())\n\n\toutput, err := cmd.CombinedOutput()\n\tif err != nil {\n\t\tb.log.Infof(\"%s\", string(output))\n\n\t\treturn fmt.Errorf(\"%s: %w\", strings.Join(cmd.Args, \" \"), err)\n\t}\n\n\treturn nil\n}\n\nfunc (b Builder) addToGoMod(ctx context.Context) error {\n\tfor _, plugin := range b.cfg.Plugins {\n\t\tif plugin.Path != \"\" {\n\t\t\terr := b.addReplaceDirective(ctx, plugin)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\n\t\t\tcontinue\n\t\t}\n\n\t\terr := b.goGet(ctx, plugin)\n\t\tif err != nil {","sourceCodeStart":87,"sourceCodeEnd":123,"githubUrl":"https://github.com/golangci/golangci-lint/blob/ed7a235d2d771152056fdc142a9855567c5796a9/pkg/commands/internal/builder.go#L87-L123","documentation":"Error from Builder.clone: 'git clone --branch <version> --single-branch --depth 1' of the golangci-lint repository failed (exit status non-zero). The full command line is embedded in the message via %s and the git error wrapped with %w; the combined git output is logged beforehand. Typical causes: the requested version/tag does not exist, or no network access to github.com.","triggerScenarios":"Thrown at pkg/commands/internal/builder.go:105 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the configured version corresponds to an existing golangci-lint tag","Check network connectivity/proxy settings for github.com","Ensure git is installed and on PATH","Review the logged git output for authentication or DNS errors"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ed7a235d2d771152056fdc142a9855567c5796a9","analyzedAt":"2026-09-02T18:47:33.865Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}