Skip to content

Fix: Running AutoMigrate concurrently on the same model fails with various race conditions #1217

Fix: Running AutoMigrate concurrently on the same model fails with various race conditions

Fix: Running AutoMigrate concurrently on the same model fails with various race conditions #1217

Triggered via pull request November 9, 2023 15:20
Status Failure
Total duration 35s
Artifacts

reviewdog.yml

on: pull_request
runner / golangci-lint
24s
runner / golangci-lint
Fit to window
Zoom out
Zoom in

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