Skip to content

Update hook.go

Update hook.go #765

Triggered via push March 17, 2025 08:07
Status Failure
Total duration 6m 55s
Artifacts

default.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

11 errors
lint: hook.go#L215
invalid operation: cannot compare o.Name == nil (mismatched types string and untyped nil) (typecheck)
lint
issues found
Tests: helper_test.go#L353
cannot use String(hookName) (value of type *string) as type string in struct literal
Tests: hook_test.go#L30
cannot use String(hookName) (value of type *string) as type string in struct literal
Tests: hook_test.go#L47
invalid operation: cannot indirect options.Name (variable of type string)
Tests: hook_test.go#L57
cannot use String("test-hook") (value of type *string) as type string in struct literal
Tests: hook_test.go#L69
cannot use String("test-hook") (value of type *string) as type string in struct literal
Tests: hook_test.go#L84
cannot use String("test-hook") (value of type *string) as type string in struct literal
Tests: hook_test.go#L99
cannot use String("test-hook") (value of type *string) as type string in struct literal
Tests: hook_test.go#L114
cannot use String("test-hook") (value of type *string) as type string in struct literal
Tests
Process completed with exit code 2.