Skip to content

Delisting unavailable pinned courses #1460

Delisting unavailable pinned courses

Delisting unavailable pinned courses #1460

Triggered via pull request December 3, 2024 16:35
Status Failure
Total duration 1m 35s
Artifacts

golangci-lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

23 errors and 4 warnings
lint (./...): tools/testutils/testdata.go#L628
cannot use coursesMock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./...): api/audit_test.go#L11
could not import github.com/TUM-Dev/gocast/tools/testutils (-: # github.com/TUM-Dev/gocast/tools/testutils
lint (./...): tools/testutils/testdata.go#L628
cannot use coursesMock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse)) (typecheck)
lint (./...): api/courses_test.go#L91
cannot use mock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./...): api/courses_test.go#L177
cannot use mock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./...): api/courses_test.go#L196
cannot use mock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./...): api/courses_test.go#L215
cannot use mock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./...): api/courses_test.go#L237
cannot use mock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./...): api/courses_test.go#L281
cannot use mock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./...): api/courses_test.go#L302
cannot use mock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./worker/edge)
The job was canceled because "_" failed.
lint (./worker/edge): tools/testutils/testdata.go#L628
cannot use coursesMock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./worker/edge): api/audit_test.go#L11
could not import github.com/TUM-Dev/gocast/tools/testutils (-: # github.com/TUM-Dev/gocast/tools/testutils
lint (./worker/edge): tools/testutils/testdata.go#L628
cannot use coursesMock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse)) (typecheck)
lint (./worker/edge): api/courses_test.go#L91
cannot use mock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./worker/edge): api/courses_test.go#L177
cannot use mock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./worker/edge): api/courses_test.go#L196
cannot use mock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./worker/edge): api/courses_test.go#L215
cannot use mock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./worker/edge): api/courses_test.go#L237
cannot use mock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./worker/edge): api/courses_test.go#L281
cannot use mock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./worker/edge): api/courses_test.go#L302
cannot use mock (variable of type *mock_dao.MockCoursesDao) as dao.CoursesDao value in return statement: *mock_dao.MockCoursesDao does not implement dao.CoursesDao (missing method IsUserEnrolledInCourse) (typecheck)
lint (./worker)
The job was canceled because "_" failed.
lint (./worker)
The operation was canceled.
lint (./...)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint (./...)
Restore cache failed: Dependencies file is not found in /home/runner/work/gocast/gocast. Supported file pattern: go.sum
lint (./worker/edge)
Restore cache failed: Dependencies file is not found in /home/runner/work/gocast/gocast. Supported file pattern: go.sum
lint (./worker)
Restore cache failed: Dependencies file is not found in /home/runner/work/gocast/gocast. Supported file pattern: go.sum