Skip to content

WIP: refactor: refactor funcs with generics #1895

WIP: refactor: refactor funcs with generics

WIP: refactor: refactor funcs with generics #1895

Triggered via pull request April 10, 2024 16:35
Status Failure
Total duration 1m 58s
Artifacts

tests.yml

on: pull_request
Matrix: mysql
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

96 errors and 15 warnings
[golangci] internal/template/method.go#L30: internal/template/method.go#L30
exported: comment on exported const GetInstanceMethod should be of the form "GetInstanceMethod ..." (revive)
[golangci] field/export.go#L40: field/export.go#L40
unexported-return: exported func NewField returns unexported type field.genericsField[database/sql/driver.Valuer], which can be annoying to use (revive)
[golangci] field/time.go#L81: field/time.go#L81
exported: exported method Time.Year should have comment or be unexported (revive)
[golangci] generics.go#L199: generics.go#L199
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
[golangci] generics.go#L208: generics.go#L208
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
[golangci] generics.go#L217: generics.go#L217
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
[golangci] generics.go#L13: generics.go#L13
exported: exported type IGenericsDo should have comment or be unexported (revive)
[golangci] generics.go#L74: generics.go#L74
exported: exported type GenericsDo should have comment or be unexported (revive)
[golangci] generics.go#L79: generics.go#L79
exported: exported method GenericsDo.Debug should have comment or be unexported (revive)
[golangci] generics.go#L83: generics.go#L83
exported: exported method GenericsDo.WithContext should have comment or be unexported (revive)
[golangci] generics.go#L87: generics.go#L87
exported: exported method GenericsDo.ReadDB should have comment or be unexported (revive)
[golangci] generics.go#L91: generics.go#L91
exported: exported method GenericsDo.WriteDB should have comment or be unexported (revive)
[golangci] generics.go#L95: generics.go#L95
exported: exported method GenericsDo.Session should have comment or be unexported (revive)
[golangci] generics.go#L99: generics.go#L99
exported: exported method GenericsDo.Clauses should have comment or be unexported (revive)
[golangci] generics.go#L103: generics.go#L103
exported: exported method GenericsDo.Returning should have comment or be unexported (revive)
[golangci] generics.go#L107: generics.go#L107
exported: exported method GenericsDo.Not should have comment or be unexported (revive)
[golangci] generics.go#L111: generics.go#L111
exported: exported method GenericsDo.Or should have comment or be unexported (revive)
[golangci] generics.go#L115: generics.go#L115
exported: exported method GenericsDo.Select should have comment or be unexported (revive)
[golangci] generics.go#L119: generics.go#L119
exported: exported method GenericsDo.Where should have comment or be unexported (revive)
tests (1.18, ubuntu-latest)
meth.Origin undefined (type *types.Func has no field or method Origin)
tests (1.18, ubuntu-latest)
Process completed with exit code 2.
tests (1.19, ubuntu-latest)
The job was canceled because "_1_18_ubuntu-latest" failed.
tests (1.21, ubuntu-latest)
The job was canceled because "_1_18_ubuntu-latest" failed.
tests (1.21, ubuntu-latest)
The operation was canceled.
tests (1.20, ubuntu-latest)
The job was canceled because "_1_18_ubuntu-latest" failed.
tests (1.20, ubuntu-latest)
The operation was canceled.
mysql (mysql:5.7, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.21, ubuntu-latest)
undefined: field.Int32
mysql (mysql:5.7, 1.21, ubuntu-latest)
undefined: field.Int32
mysql (mysql:latest, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.21, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.21, ubuntu-latest)
undefined: field.Int32
mysql (mysql:latest, 1.21, ubuntu-latest)
undefined: field.Int32
mysql (mysql:latest, 1.18, ubuntu-latest)
The job was canceled because "mysql_5_7_1_21_ubuntu-lat" failed.
mysql (mysql:latest, 1.18, ubuntu-latest)
meth.Origin undefined (type *types.Func has no field or method Origin)
mysql (mysql:latest, 1.18, ubuntu-latest)
Process completed with exit code 2.
mysql (mysql:latest, 1.20, ubuntu-latest)
The job was canceled because "mysql_5_7_1_21_ubuntu-lat" failed.
mysql (mysql:latest, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.20, ubuntu-latest)
undefined: field.Int32
mysql (mysql:latest, 1.20, ubuntu-latest)
undefined: field.Int32
mysql (mysql:5.7, 1.19, ubuntu-latest)
The job was canceled because "mysql_5_7_1_21_ubuntu-lat" failed.
mysql (mysql:5.7, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.19, ubuntu-latest)
undefined: field.Int32
mysql (mysql:5.7, 1.19, ubuntu-latest)
undefined: field.Int32
mysql (mysql:5.7, 1.20, ubuntu-latest)
The job was canceled because "mysql_5_7_1_21_ubuntu-lat" failed.
mysql (mysql:5.7, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.20, ubuntu-latest)
undefined: field.Int64
mysql (mysql:5.7, 1.20, ubuntu-latest)
undefined: field.Int32
mysql (mysql:5.7, 1.20, ubuntu-latest)
undefined: field.Int32
mysql (mysql:5.7, 1.18, ubuntu-latest)
The job was canceled because "mysql_5_7_1_21_ubuntu-lat" failed.
mysql (mysql:5.7, 1.18, ubuntu-latest)
meth.Origin undefined (type *types.Func has no field or method Origin)
mysql (mysql:5.7, 1.18, ubuntu-latest)
The operation was canceled.
mysql (mysql:latest, 1.19, ubuntu-latest)
The job was canceled because "mysql_5_7_1_21_ubuntu-lat" failed.
mysql (mysql:latest, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.19, ubuntu-latest)
undefined: field.Int64
mysql (mysql:latest, 1.19, ubuntu-latest)
undefined: field.Int32
mysql (mysql:latest, 1.19, ubuntu-latest)
undefined: field.Int32
tests (1.18, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
tests (1.18, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gen/gen. Supported file pattern: go.sum
tests (1.19, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gen/gen. Supported file pattern: go.sum
tests (1.21, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gen/gen. Supported file pattern: go.sum
tests (1.20, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gen/gen. Supported file pattern: go.sum
mysql (mysql:5.7, 1.21, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
mysql (mysql:5.7, 1.21, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gen/gen. Supported file pattern: go.sum
mysql (mysql:latest, 1.21, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
mysql (mysql:latest, 1.21, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gen/gen. Supported file pattern: go.sum
mysql (mysql:latest, 1.18, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gen/gen. Supported file pattern: go.sum
mysql (mysql:latest, 1.20, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gen/gen. Supported file pattern: go.sum
mysql (mysql:5.7, 1.19, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gen/gen. Supported file pattern: go.sum
mysql (mysql:5.7, 1.20, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gen/gen. Supported file pattern: go.sum
mysql (mysql:5.7, 1.18, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gen/gen. Supported file pattern: go.sum
mysql (mysql:latest, 1.19, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gen/gen. Supported file pattern: go.sum