[release-10.4.18] Go: Bump to 1.24.2 (#103531)
* Go: Bump to 1.24.2 * CI: Update golangci-lint * feat: update swagger * fix: more lints * fix: lints
This commit is contained in:
@@ -71,9 +71,11 @@ func (j *lmox) Generate(kind kindsys.Kind) (codejen.Files, error) {
|
||||
var fl codejen.Files
|
||||
major := -1
|
||||
for sch := kind.Lineage().First(); sch != nil; sch = sch.Successor() {
|
||||
//nolint:gosec // G115: this is codegen.
|
||||
if int(sch.Version()[0]) == major {
|
||||
continue
|
||||
}
|
||||
//nolint:gosec // G115: this is codegen.
|
||||
major = int(sch.Version()[0])
|
||||
|
||||
sfg.Schema = sch.LatestInMajor()
|
||||
|
||||
Reference in New Issue
Block a user