Skip to content

WIP: refactor: refactor funcs with generics #1907

WIP: refactor: refactor funcs with generics

WIP: refactor: refactor funcs with generics #1907

Triggered via pull request May 6, 2024 04:20
Status Failure
Total duration 1m 41s
Artifacts

tests.yml

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

Annotations

83 errors and 15 warnings
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.20, ubuntu-latest)
The job was canceled because "_1_18_ubuntu-latest" failed.
tests (1.20, ubuntu-latest)
The operation was canceled.
[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/number.go#L8: field/number.go#L8
exported: exported type Int should have comment or be unexported (revive)
[golangci] field/number.go#L10: field/number.go#L10
exported: exported type Int8 should have comment or be unexported (revive)
[golangci] field/number.go#L12: field/number.go#L12
exported: exported type Int16 should have comment or be unexported (revive)
[golangci] field/number.go#L14: field/number.go#L14
exported: exported type Int32 should have comment or be unexported (revive)
[golangci] field/number.go#L16: field/number.go#L16
exported: exported type Int64 should have comment or be unexported (revive)
[golangci] field/number.go#L18: field/number.go#L18
exported: exported type Uint should have comment or be unexported (revive)
[golangci] field/number.go#L20: field/number.go#L20
exported: exported type Uint8 should have comment or be unexported (revive)
[golangci] field/number.go#L22: field/number.go#L22
exported: exported type Uint16 should have comment or be unexported (revive)
[golangci] field/number.go#L24: field/number.go#L24
exported: exported type Uint32 should have comment or be unexported (revive)
[golangci] field/number.go#L26: field/number.go#L26
exported: exported type Uint64 should have comment or be unexported (revive)
[golangci] field/number.go#L28: field/number.go#L28
exported: exported type Float32 should have comment or be unexported (revive)
[golangci] field/number.go#L30: field/number.go#L30
exported: exported type Float64 should have comment or be unexported (revive)
[golangci] field/time.go#L81: field/time.go#L81
exported: exported method Time.Year should have comment or be unexported (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] generics.go#L200: generics.go#L200
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#L209: generics.go#L209
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#L218: generics.go#L218
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#L75: generics.go#L75
exported: exported type GenericsDo should have comment or be unexported (revive)
tests (1.21, ubuntu-latest)
The job was canceled because "_1_18_ubuntu-latest" failed.
tests (1.21, ubuntu-latest)
The operation was canceled.
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)
Process completed with exit code 2.
mysql (mysql:5.7, 1.20, ubuntu-latest)
The job was canceled because "mysql_5_7_1_18_ubuntu-lat" failed.
mysql (mysql:5.7, 1.20, ubuntu-latest)
cannot use field.NewField(tableName, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.20, ubuntu-latest)
cannot use field.NewField(table, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.19, ubuntu-latest)
The job was canceled because "mysql_5_7_1_18_ubuntu-lat" failed.
mysql (mysql:5.7, 1.20, ubuntu-latest)
cannot use field.NewField(tableName, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.20, ubuntu-latest)
cannot use field.NewField(table, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.20, ubuntu-latest)
cannot use field.NewField(tableName, "bit") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.19, ubuntu-latest)
cannot use field.NewField(tableName, "deleted_at") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:5.7, 1.20, ubuntu-latest)
cannot use field.NewField(tableName, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.19, ubuntu-latest)
cannot use field.NewField(table, "deleted_at") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:5.7, 1.20, ubuntu-latest)
cannot use field.NewField(table, "bit") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.19, ubuntu-latest)
cannot use field.NewField(tableName, "deleted_at") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:5.7, 1.20, ubuntu-latest)
cannot use field.NewField(table, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.19, ubuntu-latest)
cannot use field.NewField(table, "deleted_at") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:5.7, 1.20, ubuntu-latest)
Process completed with exit code 1.
mysql (mysql:5.7, 1.19, ubuntu-latest)
cannot use field.NewField(tableName, "bit") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:5.7, 1.19, ubuntu-latest)
cannot use field.NewField(tableName, "deleted_at") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:5.7, 1.19, ubuntu-latest)
cannot use field.NewField(table, "bit") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:5.7, 1.19, ubuntu-latest)
cannot use field.NewField(table, "deleted_at") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:5.7, 1.19, ubuntu-latest)
Process completed with exit code 1.
mysql (mysql:latest, 1.19, ubuntu-latest)
The job was canceled because "mysql_5_7_1_18_ubuntu-lat" failed.
mysql (mysql:latest, 1.19, ubuntu-latest)
cannot use field.NewField(tableName, "deleted_at") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:latest, 1.19, ubuntu-latest)
cannot use field.NewField(table, "deleted_at") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:latest, 1.19, ubuntu-latest)
cannot use field.NewField(tableName, "deleted_at") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:latest, 1.19, ubuntu-latest)
cannot use field.NewField(table, "deleted_at") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:latest, 1.19, ubuntu-latest)
cannot use field.NewField(tableName, "bit") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:latest, 1.19, ubuntu-latest)
cannot use field.NewField(tableName, "deleted_at") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:latest, 1.19, ubuntu-latest)
cannot use field.NewField(table, "bit") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:latest, 1.19, ubuntu-latest)
cannot use field.NewField(table, "deleted_at") (value of type field.genericsField[driver.Valuer]) as type field.Field in assignment
mysql (mysql:latest, 1.19, ubuntu-latest)
The operation was canceled.
mysql (mysql:latest, 1.18, ubuntu-latest)
The job was canceled because "mysql_5_7_1_18_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)
The operation was canceled.
mysql (mysql:latest, 1.20, ubuntu-latest)
The job was canceled because "mysql_5_7_1_18_ubuntu-lat" failed.
mysql (mysql:latest, 1.20, ubuntu-latest)
cannot use field.NewField(tableName, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:latest, 1.20, ubuntu-latest)
cannot use field.NewField(table, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:latest, 1.20, ubuntu-latest)
cannot use field.NewField(tableName, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:latest, 1.20, ubuntu-latest)
cannot use field.NewField(table, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:latest, 1.20, ubuntu-latest)
cannot use field.NewField(tableName, "bit") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:latest, 1.20, ubuntu-latest)
cannot use field.NewField(tableName, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:latest, 1.20, ubuntu-latest)
cannot use field.NewField(table, "bit") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:latest, 1.20, ubuntu-latest)
cannot use field.NewField(table, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:latest, 1.20, ubuntu-latest)
The operation was canceled.
mysql (mysql:5.7, 1.21, ubuntu-latest)
The job was canceled because "mysql_5_7_1_18_ubuntu-lat" failed.
mysql (mysql:5.7, 1.21, ubuntu-latest)
cannot use field.NewField(tableName, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.21, ubuntu-latest)
cannot use field.NewField(table, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.21, ubuntu-latest)
cannot use field.NewField(tableName, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.21, ubuntu-latest)
cannot use field.NewField(table, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.21, ubuntu-latest)
cannot use field.NewField(tableName, "bit") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.21, ubuntu-latest)
cannot use field.NewField(tableName, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.21, ubuntu-latest)
cannot use field.NewField(table, "bit") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.21, ubuntu-latest)
cannot use field.NewField(table, "deleted_at") (value of type "gorm.io/gen/field".genericsField[driver.Valuer]) as "gorm.io/gen/field".Field value in assignment
mysql (mysql:5.7, 1.21, ubuntu-latest)
The operation was canceled.
mysql (mysql:latest, 1.21, ubuntu-latest)
The job was canceled because "mysql_5_7_1_18_ubuntu-lat" failed.
mysql (mysql:latest, 1.21, ubuntu-latest)
The operation was canceled.
tests (1.19, 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.19, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/gen/gen. Supported file pattern: go.sum
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.20, 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
mysql (mysql:5.7, 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/.
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: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:latest, 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: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.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)
Restore cache failed: Dependencies file is not found in /home/runner/work/gen/gen. Supported file pattern: go.sum