Skip to content

fix: Refactor Replace_All and validate #491

fix: Refactor Replace_All and validate

fix: Refactor Replace_All and validate #491

Triggered via pull request October 31, 2023 04:17
Status Failure
Total duration 3m 15s
Artifacts

verify.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

26 errors and 5 warnings
lint: internal/store/postgres/job/adapter.go#L1
: # github.com/goto/optimus/internal/store/postgres/job
lint: internal/store/postgres/job/job_repository.go#L352
cannot use errors.Wrap(job.EntityJob, "error while getting job with upstreams", err) (value of type error) as map["github.com/goto/optimus/core/job".Name]error value in return statement
lint: internal/store/postgres/job/job_repository.go#L363
cannot use errors.NotFound(job.EntityJob, "job upstream not found") (value of type *"github.com/goto/optimus/internal/errors".DomainError) as map["github.com/goto/optimus/core/job".Name]error value in return statement
lint: internal/store/postgres/job/job_repository.go#L366
cannot use errors.Wrap(resource.EntityResource, "error in reading row for resource", err) (value of type error) as map["github.com/goto/optimus/core/job".Name]error value in return statement
lint: internal/store/postgres/job/job_repository.go#L370
errMap declared and not used
lint: internal/store/postgres/job/job_repository.go#L371
cannot use err (variable of type error) as map["github.com/goto/optimus/core/job".Name]error value in return statement (typecheck)
lint: server/optimus.go#L40
could not import github.com/goto/optimus/internal/store/postgres/job (-: # github.com/goto/optimus/internal/store/postgres/job
lint: internal/store/postgres/job/job_repository.go#L352
cannot use errors.Wrap(job.EntityJob, "error while getting job with upstreams", err) (value of type error) as map["github.com/goto/optimus/core/job".Name]error value in return statement
lint: internal/store/postgres/job/job_repository.go#L363
cannot use errors.NotFound(job.EntityJob, "job upstream not found") (value of type *"github.com/goto/optimus/internal/errors".DomainError) as map["github.com/goto/optimus/core/job".Name]error value in return statement
lint: internal/store/postgres/job/job_repository.go#L366
cannot use errors.Wrap(resource.EntityResource, "error in reading row for resource", err) (value of type error) as map["github.com/goto/optimus/core/job".Name]error value in return statement
integration-test: internal/store/postgres/job/job_repository.go#L352
cannot use errors.Wrap(job.EntityJob, "error while getting job with upstreams", err) (value of type error) as map["github.com/goto/optimus/core/job".Name]error value in return statement
integration-test: internal/store/postgres/job/job_repository.go#L363
cannot use errors.NotFound(job.EntityJob, "job upstream not found") (value of type *"github.com/goto/optimus/internal/errors".DomainError) as map["github.com/goto/optimus/core/job".Name]error value in return statement
integration-test: internal/store/postgres/job/job_repository.go#L366
cannot use errors.Wrap(resource.EntityResource, "error in reading row for resource", err) (value of type error) as map["github.com/goto/optimus/core/job".Name]error value in return statement
integration-test: internal/store/postgres/job/job_repository.go#L370
errMap declared and not used
integration-test: internal/store/postgres/job/job_repository.go#L371
cannot use err (variable of type error) as map["github.com/goto/optimus/core/job".Name]error value in return statement
integration-test: internal/store/postgres/job/job_repository.go#L352
cannot use errors.Wrap(job.EntityJob, "error while getting job with upstreams", err) (value of type error) as map["github.com/goto/optimus/core/job".Name]error value in return statement
integration-test: internal/store/postgres/job/job_repository.go#L363
cannot use errors.NotFound(job.EntityJob, "job upstream not found") (value of type *"github.com/goto/optimus/internal/errors".DomainError) as map["github.com/goto/optimus/core/job".Name]error value in return statement
integration-test: internal/store/postgres/job/job_repository.go#L366
cannot use errors.Wrap(resource.EntityResource, "error in reading row for resource", err) (value of type error) as map["github.com/goto/optimus/core/job".Name]error value in return statement
integration-test: internal/store/postgres/job/job_repository.go#L370
errMap declared and not used
integration-test: internal/store/postgres/job/job_repository.go#L371
cannot use err (variable of type error) as map["github.com/goto/optimus/core/job".Name]error value in return statement
unit-test: internal/store/postgres/job/job_repository.go#L352
cannot use errors.Wrap(job.EntityJob, "error while getting job with upstreams", err) (value of type error) as map["github.com/goto/optimus/core/job".Name]error value in return statement
unit-test: internal/store/postgres/job/job_repository.go#L363
cannot use errors.NotFound(job.EntityJob, "job upstream not found") (value of type *"github.com/goto/optimus/internal/errors".DomainError) as map["github.com/goto/optimus/core/job".Name]error value in return statement
unit-test: internal/store/postgres/job/job_repository.go#L366
cannot use errors.Wrap(resource.EntityResource, "error in reading row for resource", err) (value of type error) as map["github.com/goto/optimus/core/job".Name]error value in return statement
unit-test: internal/store/postgres/job/job_repository.go#L370
errMap declared and not used
unit-test: internal/store/postgres/job/job_repository.go#L371
cannot use err (variable of type error) as map["github.com/goto/optimus/core/job".Name]error value in return statement
unit-test
Process completed with exit code 2.
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-go@v2, actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
integration-test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-go@v2, actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
unit-test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-go@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/