Skip to content

refactor: introduce type resource.ID #2483

refactor: introduce type resource.ID

refactor: introduce type resource.ID #2483

Triggered via pull request November 9, 2024 09:47
@leg100leg100
synchronize #704
refactor-id
Status Failure
Total duration 1m 6s
Artifacts

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
build: internal/logs/db.go#L21
cannot use sql.ID(chunk.RunID) (value of type pgtype.Text) as resource.ID value in struct literal
build: internal/logs/db.go#L39
cannot use chunk.RunID.String (value of type func() string) as string value in argument to resource.ParseID
build: internal/logs/db.go#L48
cannot use sql.ID(runID) (value of type pgtype.Text) as resource.ID value in struct literal (compile)
build: internal/logs/db.go#L21
cannot use sql.ID(chunk.RunID) (value of type pgtype.Text) as resource.ID value in struct literal
build: internal/logs/db.go#L39
cannot use chunk.RunID.String (value of type func() string) as string value in argument to resource.ParseID
build: internal/logs/db.go#L48
cannot use sql.ID(runID) (value of type pgtype.Text) as resource.ID value in struct literal (compile)
build: internal/vcsprovider/db.go#L38
cannot use sql.ID(provider.ID) (value of type pgtype.Text) as "github.com/leg100/otf/internal/resource".ID value in struct literal
build: internal/vcsprovider/db.go#L57
cannot use sql.ID(provider.ID) (value of type pgtype.Text) as "github.com/leg100/otf/internal/resource".ID value in struct literal
build: internal/vcsprovider/db.go#L71
cannot use sql.ID(id) (value of type pgtype.Text) as "github.com/leg100/otf/internal/resource".ID value in argument to q.FindVCSProviderForUpdate
build: internal/vcsprovider/db.go#L75
cannot convert row (variable of type sqlc.FindVCSProviderForUpdateRow) to type pgRow
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build
No files were found with the provided path: internal/integration/screenshots/**/*.png. No artifacts will be uploaded.