Add migration count check #27

Merged
lunny merged 2 commits from yp05327/gitea-vet:add-migration-count-check into main 2024-01-23 02:36:34 +00:00
Contributor

Add checks for no matching of migration functions count and the length of migrations defined in migrations.go

For example, for v284 -> v285
image
remove line 556:
image
run make lint-go-vet:
image

Add checks for no matching of migration functions count and the length of `migrations` defined in `migrations.go` For example, for `v284 -> v285` ![image](/attachments/e43c465e-d41f-4755-950d-d3565690ea2a) remove line 556: ![image](/attachments/a8598239-f123-415a-8090-3bdb781ce6ab) run `make lint-go-vet`: ![image](/attachments/7a55b7be-6c19-41b5-995f-98d4aa5a7100)
yp05327 added 2 commits 2024-01-22 06:59:24 +00:00
improve
All checks were successful
build and test / build and test (pull_request) Successful in 37s
04aa321ccf
Owner

I don't think it's right. You need to count the files not the packages.

~~I don't think it's right. You need to count the files not the packages.~~
Author
Contributor

I don't think it's right. You need to count the files not the packages.

I don't understand. I count GoFiles in the packages.

> I don't think it's right. You need to count the files not the packages. I don't understand. I count `GoFiles` in the packages.
lunny approved these changes 2024-01-23 02:36:14 +00:00
lunny merged commit 621ce6ac7b into main 2024-01-23 02:36:34 +00:00
yp05327 deleted branch add-migration-count-check 2024-01-29 07:36:01 +00:00
Sign in to join this conversation.
No description provided.