[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:
Mariell Hoversholm
2025-04-09 11:12:33 +02:00
committed by GitHub
parent ee117f713e
commit 750b094dda
75 changed files with 846 additions and 368 deletions
@@ -207,7 +207,7 @@ func TestMigratorLocking(t *testing.T) {
var errorNum int64
t.Run("when concurrent migrations for the same migrator occur, the second one should fail", func(t *testing.T) {
for i := 0; i < 2; i++ {
i := i // capture i variable
// capture i variable
t.Run(fmt.Sprintf("run migration %d", i), func(t *testing.T) {
t.Parallel()
err := mg.Start(true, 0)
@@ -262,7 +262,7 @@ func TestDatabaseLocking(t *testing.T) {
var errorNum int64
t.Run("when concurrent migrations occur for different migrators occur, the second one should fail", func(t *testing.T) {
for i := 0; i < 2; i++ {
i := i // capture i variable
// capture i variable
t.Run(fmt.Sprintf("run migration %d", i), func(t *testing.T) {
mg, err := reg.get(i)
require.NoError(t, err)
@@ -191,7 +191,6 @@ func (mg *Migrator) run() (err error) {
migrationsSkipped := 0
start := time.Now()
for _, m := range mg.migrations {
m := m
_, exists := mg.logMap[m.Id()]
if exists {
mg.Logger.Debug("Skipping migration: Already executed", "id", m.Id())