Skip to content

fix(collector): fix lint and build errors for go collector #34

fix(collector): fix lint and build errors for go collector

fix(collector): fix lint and build errors for go collector #34

Triggered via pull request December 11, 2023 06:25
Status Failure
Total duration 48s
Artifacts

lint_and_test_collector.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
Lint: collector/metrics/metric_collector.go#L294
File is not `gofmt`-ed with `-s` (gofmt)
Lint: collector/avail/detector.go#L94
File is not `gofmt`-ed with `-s` (gofmt)
Lint: collector/metrics/metric_collector.go#L106
printf: Sprintf format %s has arg addr of wrong type int (govet)
Lint: collector/metrics/metric_collector.go#L112
printf: Errorf format %s has arg addr of wrong type int (govet)
Lint
issues found
Build
The following actions uses node12 which is deprecated and will be forced to run on node16: 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/