Skip to content

fix: add question operations in questionnaire handling #1775

fix: add question operations in questionnaire handling

fix: add question operations in questionnaire handling #1775

Triggered via pull request November 14, 2024 10:08
Status Failure
Total duration 5m 54s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

35 errors and 5 warnings
Spectral
No ruleset has been found. Please provide a ruleset using the spectral_ruleset option, or make sure your ruleset file matches .?spectral.(js|ya?ml|json)
[golangci] controller/questionnaire.go#L173: controller/questionnaire.go#L173
question.Body undefined (type openapi.NewQuestion has no field or method Body)
[golangci] controller/questionnaire.go#L393: controller/questionnaire.go#L393
invalid operation: question.QuestionId == nil (mismatched types int and untyped nil)
[golangci] controller/questionnaire.go#L394: controller/questionnaire.go#L394
question.Body undefined (type openapi.Question has no field or method Body)
[golangci] controller/questionnaire.go#L400: controller/questionnaire.go#L400
question.Body undefined (type openapi.Question has no field or method Body)
[golangci] controller/questionnaire.go#L400: controller/questionnaire.go#L400
invalid operation: cannot indirect question.QuestionId (variable of type int) (typecheck)
[golangci] controller/questionnaire.go#L173: controller/questionnaire.go#L173
question.Body undefined (type openapi.NewQuestion has no field or method Body)
[golangci] controller/questionnaire.go#L393: controller/questionnaire.go#L393
invalid operation: question.QuestionId == nil (mismatched types int and untyped nil)
[golangci] controller/questionnaire.go#L394: controller/questionnaire.go#L394
question.Body undefined (type openapi.Question has no field or method Body)
[golangci] controller/questionnaire.go#L400: controller/questionnaire.go#L400
question.Body undefined (type openapi.Question has no field or method Body)
[golangci] controller/questionnaire.go#L400: controller/questionnaire.go#L400
invalid operation: cannot indirect question.QuestionId (variable of type int)) (typecheck)
Lint: controller/questionnaire.go#L173
question.Body undefined (type openapi.NewQuestion has no field or method Body)
Lint: controller/questionnaire.go#L393
invalid operation: question.QuestionId == nil (mismatched types int and untyped nil)
Lint: controller/questionnaire.go#L394
question.Body undefined (type openapi.Question has no field or method Body)
Lint: controller/questionnaire.go#L400
question.Body undefined (type openapi.Question has no field or method Body)
Lint: controller/questionnaire.go#L400
invalid operation: cannot indirect question.QuestionId (variable of type int) (typecheck)
Lint: handler/questionnaire.go#L9
could not import github.com/traPtitech/anke-to/controller (-: # github.com/traPtitech/anke-to/controller
Lint: controller/questionnaire.go#L173
question.Body undefined (type openapi.NewQuestion has no field or method Body)
Lint: controller/questionnaire.go#L393
invalid operation: question.QuestionId == nil (mismatched types int and untyped nil)
Lint: controller/questionnaire.go#L394
question.Body undefined (type openapi.Question has no field or method Body)
Lint: controller/questionnaire.go#L400
question.Body undefined (type openapi.Question has no field or method Body)
Build: tuning/main.go#L12
missing go.sum entry for module providing package golang.org/x/sync/errgroup (imported by github.com/traPtitech/anke-to/tuning); to add:
Build
Process completed with exit code 1.
Test
missing go.sum entry for module providing package golang.org/x/sync/errgroup (imported by golang.org/x/tools/go/packages); to add:
Test
Process completed with exit code 1.
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Test
Cannot open: File exists
Lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, reviewdog/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Mod
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2