Skip to content

feat: replace pure SQL strings with SQLair #645

feat: replace pure SQL strings with SQLair

feat: replace pure SQL strings with SQLair #645

Triggered via pull request November 12, 2024 16:39
@kayra1kayra1
synchronize #122
db
Status Failure
Total duration 2m 48s
Artifacts 1

main.yml

on: pull_request
go-unit-test  /  go-unit-tests
57s
go-unit-test / go-unit-tests
go-vet  /  go-vet
55s
go-vet / go-vet
go-lint  /  lint
56s
go-lint / lint
frontend-build  /  nextjs-build
1m 31s
frontend-build / nextjs-build
frontend-unit-test  /  nextjs-unit-tests
25s
frontend-unit-test / nextjs-unit-tests
go-build  /  go-build
50s
go-build / go-build
rock-build  /  build-rock
rock-build / build-rock
snap-build  /  build-snap
snap-build / build-snap
rock-publish  /  publish-rock
rock-publish / publish-rock
rock-scan  /  scan
rock-scan / scan
snap-publish  /  publish-snap
snap-publish / publish-snap
Fit to window
Zoom out
Zoom in

Annotations

22 errors
go-lint / lint: internal/metrics/metrics.go#L98
entry.Certificate undefined (type db.CertificateRequest has no field or method Certificate)
go-lint / lint: internal/metrics/metrics.go#L102
entry.Certificate undefined (type db.CertificateRequest has no field or method Certificate)
go-lint / lint: internal/metrics/metrics.go#L106
entry.Certificate undefined (type db.CertificateRequest has no field or method Certificate) (typecheck)
go-lint / lint: internal/server/middleware.go#L13
could not import github.com/canonical/notary/internal/metrics (-: # github.com/canonical/notary/internal/metrics
go-lint / lint: internal/metrics/metrics.go#L98
entry.Certificate undefined (type db.CertificateRequest has no field or method Certificate)
go-lint / lint: internal/metrics/metrics.go#L102
entry.Certificate undefined (type db.CertificateRequest has no field or method Certificate)
go-lint / lint: internal/metrics/metrics.go#L106
entry.Certificate undefined (type db.CertificateRequest has no field or method Certificate)) (typecheck)
go-lint / lint: internal/server/handlers_accounts.go#L97
cannot use env.DB.RetrieveUserByUsername(claims.Username) (value of type *db.User) as db.User value in assignment (typecheck)
go-lint / lint: internal/server/handlers_accounts.go#L99
env.DB.RetrieveUser undefined (type *db.Database has no field or method RetrieveUser) (typecheck)
go-vet / go-vet: internal/metrics/metrics.go#L98
entry.Certificate undefined (type db.CertificateRequest has no field or method Certificate)
go-vet / go-vet: internal/metrics/metrics.go#L102
entry.Certificate undefined (type db.CertificateRequest has no field or method Certificate)
go-lint / lint: internal/server/handlers_accounts.go#L158
assignment mismatch: 2 variables but env.DB.CreateUser returns 1 value (typecheck)
go-vet / go-vet: internal/metrics/metrics.go#L106
entry.Certificate undefined (type db.CertificateRequest has no field or method Certificate)
go-vet / go-vet
Process completed with exit code 1.
go-unit-test / go-unit-tests: internal/metrics/metrics.go#L98
entry.Certificate undefined (type db.CertificateRequest has no field or method Certificate)
go-unit-test / go-unit-tests: internal/metrics/metrics.go#L102
entry.Certificate undefined (type db.CertificateRequest has no field or method Certificate)
go-unit-test / go-unit-tests: internal/metrics/metrics.go#L106
entry.Certificate undefined (type db.CertificateRequest has no field or method Certificate)
go-unit-test / go-unit-tests
Process completed with exit code 1.
go-build / go-build: internal/metrics/metrics.go#L98
entry.Certificate undefined (type db.CertificateRequest has no field or method Certificate)
go-build / go-build: internal/metrics/metrics.go#L102
entry.Certificate undefined (type db.CertificateRequest has no field or method Certificate)
go-build / go-build: internal/metrics/metrics.go#L106
entry.Certificate undefined (type db.CertificateRequest has no field or method Certificate)
go-build / go-build
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
frontend-static-files
492 KB