Fix: Running AutoMigrate
concurrently on the same model fails with various race conditions
#1217
reviewdog.yml
on: pull_request
runner / golangci-lint
24s
Annotations
2 errors
runner / golangci-lint:
migrator/migrator.go#L126
[golangci] reported by reviewdog 🐶
Error return value of `(gorm.io/gorm.Migrator).ReleaseLock` is not checked (errcheck)
Raw Output:
migrator/migrator.go:126:38: Error return value of `(gorm.io/gorm.Migrator).ReleaseLock` is not checked (errcheck)
defer execTx.Migrator().ReleaseLock()
^
|
runner / golangci-lint
reviewdog exited with status code: 1
|