Skip to content

chore: add golangci-lint #409

chore: add golangci-lint

chore: add golangci-lint #409

Triggered via pull request July 17, 2025 02:23
Status Failure
Total duration 3m 5s
Artifacts

go.yml

on: pull_request
Matrix: go
Fit to window
Zoom out
Zoom in

Annotations

16 errors and 1 warning
go (1.19)
Process completed with exit code 1.
go (1.21)
Process completed with exit code 1.
go (1.20)
Process completed with exit code 1.
go (1.18)
Process completed with exit code 1.
go (1.23)
Process completed with exit code 1.
go (1.22): session.go#L256
Error return value of `p.WriteTo` is not checked (errcheck)
go (1.22): example/simple/main.go#L49
Error return value of `pyroscope.Start` is not checked (errcheck)
go (1.22): api_test.go#L14
Error return value of `profiler.Stop` is not checked (errcheck)
go (1.22): upstream/remote/remote.go#L236
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"failed to upload. server responded with statusCode: '%d' and body: '%s'\", response.StatusCode, string(respBody))" (err113)
go (1.22): upstream/remote/remote.go#L232
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"read response body: %v\", err)" (err113)
go (1.22): upstream/remote/remote.go#L225
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"do http request: %v\", err)" (err113)
go (1.22): upstream/remote/remote.go#L200
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"new http request: %v\", err)" (err113)
go (1.22): upstream/remote/remote.go#L153
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"url parse: %v\", err)" (err113)
go (1.22): collector.go#L164
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"flush rejected: cpu profiling is in progress\")" (err113)
go (1.22): collector.go#L148
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"cpu profiling already started\")" (err113)
go (tip)
Process completed with exit code 1.
go (tip)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2