Skip to content

feat: [#462] Custom Log Channel cannot take values ​​from some functions #2390

feat: [#462] Custom Log Channel cannot take values ​​from some functions

feat: [#462] Custom Log Channel cannot take values ​​from some functions #2390

Triggered via pull request September 12, 2024 08:13
Status Failure
Total duration 1m 39s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

30 errors and 1 warning
lint / lint: contracts/session/session.go#L3
could not import github.com/goravel/framework/contracts/foundation (-: import cycle not allowed: import stack: [github.com/goravel/framework/auth github.com/goravel/framework/contracts/foundation github.com/goravel/framework/contracts/http github.com/goravel/framework/contracts/session github.com/goravel/framework/contracts/foundation]) (typecheck)
lint / lint: contracts/http/request.go#L7
could not import github.com/goravel/framework/contracts/session (Config.Importer.Import(github.com/goravel/framework/contracts/session) returned nil but no error) (typecheck)
lint / lint: foundation/json/json.go#L6
could not import github.com/goravel/framework/contracts/foundation (-: import cycle not allowed: import stack: [github.com/goravel/framework/auth github.com/goravel/framework/contracts/foundation github.com/goravel/framework/contracts/http github.com/goravel/framework/contracts/session github.com/goravel/framework/contracts/foundation]) (typecheck)
lint / lint: log/logger/daily.go#L14
could not import github.com/goravel/framework/contracts/foundation (-: import cycle not allowed: import stack: [github.com/goravel/framework/auth github.com/goravel/framework/contracts/foundation github.com/goravel/framework/contracts/http github.com/goravel/framework/contracts/session github.com/goravel/framework/contracts/foundation]) (typecheck)
lint / lint: foundation/application.go#L93
app.MakeConfig undefined (type *Application has no field or method MakeConfig) (typecheck)
lint / lint: foundation/application.go#L124
app.MakeLang undefined (type *Application has no field or method MakeLang) (typecheck)
lint / lint: foundation/application.go#L128
app.MakeLang undefined (type *Application has no field or method MakeLang) (typecheck)
lint / lint: foundation/application.go#L163
app.MakeArtisan undefined (type *Application has no field or method MakeArtisan) (typecheck)
lint / lint: foundation/application.go#L175
app.MakeConfig undefined (type *Application has no field or method MakeConfig) (typecheck)
lint / lint: foundation/application.go#L213
app.MakeArtisan undefined (type *Application has no field or method MakeArtisan) (typecheck)
lint / nilaway: contracts/http/request.go#L7
could not import github.com/goravel/framework/contracts/session (import cycle: [github.com/goravel/framework/contracts/session github.com/goravel/framework/contracts/foundation github.com/goravel/framework/contracts/log github.com/goravel/framework/contracts/http])
lint / nilaway: contracts/foundation/container.go#L25
could not import github.com/goravel/framework/contracts/session (import cycle: [github.com/goravel/framework/contracts/session github.com/goravel/framework/contracts/foundation])
lint / nilaway: foundation/application.go#L30
cannot use NewContainer() (value of type *Container) as "github.com/goravel/framework/contracts/foundation".Container value in struct literal: *Container does not implement "github.com/goravel/framework/contracts/foundation".Container (wrong type for method MakeSession)
lint / nilaway: testing/mock/mock.go#L30
cannot use app (variable of type *"github.com/goravel/framework/mocks/foundation".Application) as "github.com/goravel/framework/contracts/foundation".Application value in assignment: *"github.com/goravel/framework/mocks/foundation".Application does not implement "github.com/goravel/framework/contracts/foundation".Application (wrong type for method MakeSession)
lint / nilaway: contracts/session/session.go#L3
could not import github.com/goravel/framework/contracts/foundation (import cycle: [github.com/goravel/framework/contracts/foundation [github.com/goravel/framework/contracts/foundation.test] github.com/goravel/framework/contracts/http [github.com/goravel/framework/contracts/foundation.test] github.com/goravel/framework/contracts/session [github.com/goravel/framework/contracts/foundation.test]])
lint / nilaway: foundation/application.go#L30
cannot use NewContainer() (value of type *Container) as "github.com/goravel/framework/contracts/foundation".Container value in struct literal: *Container does not implement "github.com/goravel/framework/contracts/foundation".Container (wrong type for method MakeSession)
lint / nilaway: http/middleware/throttle_test.go#L396
cannot use new(TestRequest) (value of type *TestRequest) as "github.com/goravel/framework/contracts/http".ContextRequest value in return statement: *TestRequest does not implement "github.com/goravel/framework/contracts/http".ContextRequest (wrong type for method Session)
lint / nilaway: log/logrus_writer_test.go#L264
cannot use &TestRequest{} (value of type *TestRequest) as "github.com/goravel/framework/contracts/http".ContextRequest value in argument to log.Request: *TestRequest does not implement "github.com/goravel/framework/contracts/http".ContextRequest (wrong type for method Session)
lint / nilaway: session/middleware/start_session_test.go#L126
cannot use NewTestRequest(r) (value of type *TestRequest) as "github.com/goravel/framework/contracts/http".ContextRequest value in return statement: *TestRequest does not implement "github.com/goravel/framework/contracts/http".ContextRequest (wrong type for method Session)
lint / nilaway: testing/docker/database_test.go#L65
cannot use mockApp (variable of type *"github.com/goravel/framework/mocks/foundation".Application) as "github.com/goravel/framework/contracts/foundation".Application value in struct literal: *"github.com/goravel/framework/mocks/foundation".Application does not implement "github.com/goravel/framework/contracts/foundation".Application (wrong type for method MakeSession)
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Cannot open: File exists
lint / nilaway
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2