Skip to content

chore: make each package its own go module #1

chore: make each package its own go module

chore: make each package its own go module #1

Triggered via pull request September 2, 2025 20:57
Status Failure
Total duration 1m 38s
Artifacts

ai.yml

on: pull_request
Matrix: build
Matrix: lint / lint
dependabot
0s
dependabot
Fit to window
Zoom out
Zoom in

Annotations

23 errors, 3 warnings, and 4 notices
lint / lint (ubuntu-latest): ai/agent.go#L83
exported: exported type PrepareStepFunctionOptions should have comment or be unexported (revive)
lint / lint (ubuntu-latest): ai/agent.go#L19
exported: exported type StopCondition should have comment or be unexported (revive)
lint / lint (ubuntu-latest): ai/agent.go#L14
exported: exported type StepResult should have comment or be unexported (revive)
lint / lint (ubuntu-latest): ai/agent.go#L1
package-comments: should have a package comment (revive)
lint / lint (ubuntu-latest): ai/agent.go#L930
`if err == nil` has complex nested blocks (complexity: 7) (nestif)
lint / lint (ubuntu-latest): ai/agent.go#L783
`if call.PrepareStep != nil` has complex nested blocks (complexity: 6) (nestif)
lint / lint (ubuntu-latest): ai/agent.go#L687
`if result.IsError` has complex nested blocks (complexity: 7) (nestif)
lint / lint (ubuntu-latest): ai/agent.go#L364
`if opts.PrepareStep != nil` has complex nested blocks (complexity: 6) (nestif)
lint / lint (ubuntu-latest): ai/tool.go#L201
missing cases in switch of type reflect.Kind: reflect.Invalid, reflect.Uintptr, reflect.Complex64, reflect.Complex128, reflect.Chan, reflect.Func, reflect.Pointer|reflect.Ptr, reflect.UnsafePointer (exhaustive)
lint / lint (ubuntu-latest): ai/agent.go#L1091
missing cases in switch of type ai.StreamPartType: ai.StreamPartTypeToolResult (exhaustive)
lint / lint (macos-latest): ai/agent.go#L83
exported: exported type PrepareStepFunctionOptions should have comment or be unexported (revive)
lint / lint (macos-latest): ai/agent.go#L19
exported: exported type StopCondition should have comment or be unexported (revive)
lint / lint (macos-latest): ai/agent.go#L14
exported: exported type StepResult should have comment or be unexported (revive)
lint / lint (macos-latest): ai/agent.go#L1
package-comments: should have a package comment (revive)
lint / lint (macos-latest): ai/agent.go#L930
`if err == nil` has complex nested blocks (complexity: 7) (nestif)
lint / lint (macos-latest): ai/agent.go#L783
`if call.PrepareStep != nil` has complex nested blocks (complexity: 6) (nestif)
lint / lint (macos-latest): ai/agent.go#L687
`if result.IsError` has complex nested blocks (complexity: 7) (nestif)
lint / lint (macos-latest): ai/agent.go#L364
`if opts.PrepareStep != nil` has complex nested blocks (complexity: 6) (nestif)
lint / lint (macos-latest): ai/tool.go#L201
missing cases in switch of type reflect.Kind: reflect.Invalid, reflect.Uintptr, reflect.Complex64, reflect.Complex128, reflect.Chan, reflect.Func, reflect.Pointer|reflect.Ptr, reflect.UnsafePointer (exhaustive)
lint / lint (macos-latest): ai/agent.go#L1091
missing cases in switch of type ai.StreamPartType: ai.StreamPartTypeToolResult (exhaustive)
lint / lint (macos-latest)
The strategy configuration was canceled because "lint.lint.ubuntu-latest" failed
lint / lint (windows-latest)
The operation was canceled.
lint / lint (windows-latest)
The strategy configuration was canceled because "lint.lint.ubuntu-latest" failed
lint / lint (ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/ai/ai. Supported file pattern: go.sum
lint / lint (macos-latest)
Restore cache failed: Dependencies file is not found in /Users/runner/work/ai/ai. Supported file pattern: go.sum
lint / lint (windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\ai\ai. Supported file pattern: go.sum
lint / lint (macos-latest)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
lint / lint (windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
build (macos-latest)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
build (windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677