Skip to content

POC: ast visitor type guards #1113

POC: ast visitor type guards

POC: ast visitor type guards #1113

Triggered via pull request June 5, 2023 20:08
Status Failure
Total duration 1m 16s
Artifacts

main.yml

on: pull_request
Matrix: test
CI Success
0s
CI Success
Fit to window
Zoom out
Zoom in

Annotations

24 errors and 5 warnings
Build and test (go 1.20 / ubuntu-latest): pkg/ast/ast_fragment_definition.go#L70
cannot use i (variable of type int) as FragmentSpreadRef value in argument to d.FragmentSpreadNameBytes
Build and test (go 1.20 / ubuntu-latest): pkg/ast/ast_selection.go#L38
cannot use d.CopyFragmentSpread(d.Selections[ref].Ref) (value of type FragmentSpreadRef) as int value in assignment
Build and test (go 1.20 / ubuntu-latest): pkg/ast/ast_selection.go#L38
cannot use d.Selections[ref].Ref (variable of type int) as FragmentSpreadRef value in argument to d.CopyFragmentSpread
Build and test (go 1.20 / ubuntu-latest)
Process completed with exit code 2.
Build and test (go 1.19 / ubuntu-latest)
The job was canceled because "_1_20_ubuntu-latest" failed.
Build and test (go 1.19 / ubuntu-latest): pkg/ast/ast_fragment_definition.go#L70
cannot use i (variable of type int) as FragmentSpreadRef value in argument to d.FragmentSpreadNameBytes
Build and test (go 1.19 / ubuntu-latest): pkg/ast/ast_selection.go#L38
cannot use d.CopyFragmentSpread(d.Selections[ref].Ref) (value of type FragmentSpreadRef) as int value in assignment
Build and test (go 1.19 / ubuntu-latest): pkg/ast/ast_selection.go#L38
cannot use d.Selections[ref].Ref (variable of type int) as FragmentSpreadRef value in argument to d.CopyFragmentSpread
Build and test (go 1.19 / ubuntu-latest)
The operation was canceled.
Build and test (go 1.19 / windows-latest)
The job was canceled because "_1_20_ubuntu-latest" failed.
Build and test (go 1.19 / windows-latest)
The operation was canceled.
Build and test (go 1.20 / windows-latest)
The job was canceled because "_1_20_ubuntu-latest" failed.
Build and test (go 1.20 / windows-latest)
The operation was canceled.
Linters: pkg/lexer/token/token.go#L7
could not import github.com/wundergraph/graphql-go-tools/pkg/ast (-: # github.com/wundergraph/graphql-go-tools/pkg/ast
Linters: pkg/ast/ast_fragment_definition.go#L70
cannot use i (variable of type int) as FragmentSpreadRef value in argument to d.FragmentSpreadNameBytes
Linters: pkg/ast/ast_selection.go#L38
cannot use d.CopyFragmentSpread(d.Selections[ref].Ref) (value of type FragmentSpreadRef) as int value in assignment
Linters: pkg/ast/ast_selection.go#L38
cannot use d.Selections[ref].Ref (variable of type int) as FragmentSpreadRef value in argument to d.CopyFragmentSpread) (typecheck)
Linters: cmd/directiveUnmarshalCode.go#L10
could not import github.com/wundergraph/graphql-go-tools/pkg/ast (-: # github.com/wundergraph/graphql-go-tools/pkg/ast
Linters: pkg/ast/ast_fragment_definition.go#L70
cannot use i (variable of type int) as FragmentSpreadRef value in argument to d.FragmentSpreadNameBytes
Linters: pkg/ast/ast_selection.go#L38
cannot use d.CopyFragmentSpread(d.Selections[ref].Ref) (value of type FragmentSpreadRef) as int value in assignment
Linters: pkg/ast/ast_selection.go#L38
cannot use d.Selections[ref].Ref (variable of type int) as FragmentSpreadRef value in argument to d.CopyFragmentSpread) (typecheck)
Linters: internal/pkg/unsafeparser/unsafeparser.go#L7
could not import github.com/wundergraph/graphql-go-tools/pkg/ast (-: # github.com/wundergraph/graphql-go-tools/pkg/ast
Linters: pkg/ast/ast_fragment_definition.go#L70
cannot use i (variable of type int) as FragmentSpreadRef value in argument to d.FragmentSpreadNameBytes
CI Success
Process completed with exit code 1.
Build and test (go 1.20 / ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/graphql-go-tools/graphql-go-tools. Supported file pattern: go.sum
Build and test (go 1.19 / ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/graphql-go-tools/graphql-go-tools. Supported file pattern: go.sum
Build and test (go 1.19 / windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\graphql-go-tools\graphql-go-tools. Supported file pattern: go.sum
Build and test (go 1.20 / windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\graphql-go-tools\graphql-go-tools. Supported file pattern: go.sum
Linters
Restore cache failed: Dependencies file is not found in /home/runner/work/graphql-go-tools/graphql-go-tools. Supported file pattern: go.sum