Skip to content

feat(source): Implement new source event #528

feat(source): Implement new source event

feat(source): Implement new source event #528

Triggered via pull request October 29, 2024 18:55
Status Failure
Total duration 2m 48s
Artifacts

ci.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 2 warnings
build: cmd/source/faker/consumer/main.go#L18
importShadow: shadow of imported from 'github.com/ormushq/ormus/config' package 'config' (gocritic)
build: cmd/source/faker/consumer/main.go#L47
S1000: should use for range instead of for { select {} } (gosimple)
build: cmd/source/faker/consumer/main.go#L50
deferInLoop: Possible resource leak, 'defer' is called in the 'for' loop (gocritic)
build: cmd/source/faker/publisher/main.go#L19
importShadow: shadow of imported from 'github.com/ormushq/ormus/config' package 'config' (gocritic)
build: cmd/source/faker/publisher/main.go#L49
var-naming: var messageId should be messageID (revive)
build: cmd/source/faker/publisher/main.go#L49
ST1003: var messageId should be messageID (stylecheck)
build: pkg/encoder/newsource.go#L9
copylocks: EncodeNewSourceEvent passes lock by value: github.com/ormushq/ormus/contract/go/source.NewSourceEvent contains google.golang.org/protobuf/internal/impl.MessageState contains sync.Mutex (govet)
build: pkg/encoder/newsource.go#L15
return with no blank line before (nlreturn)
build
Process completed with exit code 2.
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2