{"record":{"id":"caf9dfd880b47f23","repo":"goreleaser/goreleaser","slug":"templating-github-make-latest-w","errorCode":null,"errorMessage":"templating GitHub make_latest: %w","messagePattern":"templating GitHub make_latest: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/client/github.go","lineNumber":586,"sourceCode":"\t\treturn fmt.Errorf(\"non-numeric release ID %q: %w\", releaseID, err)\n\t}\n\tdata := github.UpdateReleaseRequest{\n\t\tDraft: new(false),\n\t}\n\ttpl := tmpl.New(ctx)\n\ttitle, err := tpl.Apply(ctx.Config.Release.NameTemplate)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"templating GitHub release name: %w\", err)\n\t}\n\tif title != \"\" {\n\t\tdata.Name = &title\n\t}\n\tif ctx.PreRelease {\n\t\tdata.Prerelease = &ctx.PreRelease\n\t}\n\tlatest, err := tpl.Apply(ctx.Config.Release.MakeLatest)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"templating GitHub make_latest: %w\", err)\n\t}\n\tif ctx.PreRelease {\n\t\tlatest = \"false\"\n\t}\n\tif latest != \"\" {\n\t\tdata.MakeLatest = &latest\n\t}\n\tif ctx.Config.Release.DiscussionCategoryName != \"\" {\n\t\tdata.DiscussionCategoryName = &ctx.Config.Release.DiscussionCategoryName\n\t}\n\trelease, err := c.updateRelease(ctx, releaseIDInt, data)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"could not update existing release: %w\", err)\n\t}\n\tlog.WithField(\"url\", release.GetHTMLURL()).Debug(\"published\")\n\treturn nil\n}\n","sourceCodeStart":568,"sourceCodeEnd":604,"githubUrl":"https://github.com/goreleaser/goreleaser/blob/f5edd7395693c0c6b501dc722d445d2e86af854d/internal/client/github.go#L568-L604","documentation":"Wrapped error in githubClient.PublishRelease: applying Go templating to the release.make_latest setting failed. The value comes from the make_latest config key and is templated before being sent as the UpdateReleaseRequest make_latest flag.","triggerScenarios":"Thrown at internal/client/github.go:586 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the make_latest template value; it must render to 'true', 'false', or 'legacy'","Avoid invalid field references or function calls in release.make_latest","Pre-release builds force make_latest to false automatically; do not fight that with the template"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f5edd7395693c0c6b501dc722d445d2e86af854d","analyzedAt":"2026-09-05T09:57:18.807Z","contentChangedAt":"2026-09-05T09:57:18.807Z","schemaVersion":2},"datasetVersion":"2026-09-12T12:17:11.808Z"}