Skip to content

fix(userservice): init db for reports #1789

fix(userservice): init db for reports

fix(userservice): init db for reports #1789

Triggered via pull request September 26, 2024 08:55
Status Failure
Total duration 44s
Artifacts

backend-linter.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint: backend/pkg/api/data_access/admin.go#L1
: # github.com/gobitfly/beaconchain/pkg/api/data_access
lint
cfg.Frontend.ReaderDatabase.SSL undefined (type struct{Username string "yaml:\"user\" envconfig:\"FRONTEND_READER_DB_USERNAME\""; Password string "yaml:\"password\" envconfig:\"FRONTEND_READER_DB_PASSWORD\""; Name string "yaml:\"name\" envconfig:\"FRONTEND_READER_DB_NAME\""; Host string "yaml:\"host\" envconfig:\"FRONTEND_READER_DB_HOST\""; Port string "yaml:\"port\" envconfig:\"FRONTEND_READER_DB_PORT\""; MaxOpenConns int "yaml:\"maxOpenConns\" envconfig:\"FRONTEND_READER_DB_MAX_OPEN_CONNS\""; MaxIdleConns int "yaml:\"maxIdleConns\" envconfig:\"FRONTEND_READER_DB_MAX_IDLE_CONNS\""} has no field or method SSL) (typecheck)
lint: backend/pkg/api/handlers/auth.go#L14
could not import github.com/gobitfly/beaconchain/pkg/api/data_access (-: # github.com/gobitfly/beaconchain/pkg/api/data_access
lint
cfg.Frontend.ReaderDatabase.SSL undefined (type struct{Username string "yaml:\"user\" envconfig:\"FRONTEND_READER_DB_USERNAME\""; Password string "yaml:\"password\" envconfig:\"FRONTEND_READER_DB_PASSWORD\""; Name string "yaml:\"name\" envconfig:\"FRONTEND_READER_DB_NAME\""; Host string "yaml:\"host\" envconfig:\"FRONTEND_READER_DB_HOST\""; Port string "yaml:\"port\" envconfig:\"FRONTEND_READER_DB_PORT\""; MaxOpenConns int "yaml:\"maxOpenConns\" envconfig:\"FRONTEND_READER_DB_MAX_OPEN_CONNS\""; MaxIdleConns int "yaml:\"maxIdleConns\" envconfig:\"FRONTEND_READER_DB_MAX_IDLE_CONNS\""} has no field or method SSL)) (typecheck)
lint: backend/pkg/api/router.go#L7
could not import github.com/gobitfly/beaconchain/pkg/api/data_access (-: # github.com/gobitfly/beaconchain/pkg/api/data_access
lint
cfg.Frontend.ReaderDatabase.SSL undefined (type struct{Username string "yaml:\"user\" envconfig:\"FRONTEND_READER_DB_USERNAME\""; Password string "yaml:\"password\" envconfig:\"FRONTEND_READER_DB_PASSWORD\""; Name string "yaml:\"name\" envconfig:\"FRONTEND_READER_DB_NAME\""; Host string "yaml:\"host\" envconfig:\"FRONTEND_READER_DB_HOST\""; Port string "yaml:\"port\" envconfig:\"FRONTEND_READER_DB_PORT\""; MaxOpenConns int "yaml:\"maxOpenConns\" envconfig:\"FRONTEND_READER_DB_MAX_OPEN_CONNS\""; MaxIdleConns int "yaml:\"maxIdleConns\" envconfig:\"FRONTEND_READER_DB_MAX_IDLE_CONNS\""} has no field or method SSL)) (typecheck)
lint: backend/cmd/api/main.go#L13
could not import github.com/gobitfly/beaconchain/pkg/api/data_access (-: # github.com/gobitfly/beaconchain/pkg/api/data_access
lint
cfg.Frontend.ReaderDatabase.SSL undefined (type struct{Username string "yaml:\"user\" envconfig:\"FRONTEND_READER_DB_USERNAME\""; Password string "yaml:\"password\" envconfig:\"FRONTEND_READER_DB_PASSWORD\""; Name string "yaml:\"name\" envconfig:\"FRONTEND_READER_DB_NAME\""; Host string "yaml:\"host\" envconfig:\"FRONTEND_READER_DB_HOST\""; Port string "yaml:\"port\" envconfig:\"FRONTEND_READER_DB_PORT\""; MaxOpenConns int "yaml:\"maxOpenConns\" envconfig:\"FRONTEND_READER_DB_MAX_OPEN_CONNS\""; MaxIdleConns int "yaml:\"maxIdleConns\" envconfig:\"FRONTEND_READER_DB_MAX_IDLE_CONNS\""} has no field or method SSL)) (typecheck)
lint: backend/pkg/archiver/archiver.go#L8
could not import github.com/gobitfly/beaconchain/pkg/api/data_access (-: # github.com/gobitfly/beaconchain/pkg/api/data_access
lint
cfg.Frontend.ReaderDatabase.SSL undefined (type struct{Username string "yaml:\"user\" envconfig:\"FRONTEND_READER_DB_USERNAME\""; Password string "yaml:\"password\" envconfig:\"FRONTEND_READER_DB_PASSWORD\""; Name string "yaml:\"name\" envconfig:\"FRONTEND_READER_DB_NAME\""; Host string "yaml:\"host\" envconfig:\"FRONTEND_READER_DB_HOST\""; Port string "yaml:\"port\" envconfig:\"FRONTEND_READER_DB_PORT\""; MaxOpenConns int "yaml:\"maxOpenConns\" envconfig:\"FRONTEND_READER_DB_MAX_OPEN_CONNS\""; MaxIdleConns int "yaml:\"maxIdleConns\" envconfig:\"FRONTEND_READER_DB_MAX_IDLE_CONNS\""} has no field or method SSL)) (typecheck)
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/