This repository was archived by the owner on Jun 2, 2023. It is now read-only.
This repository was archived by the owner on Jun 2, 2023. It is now read-only.
Can't run golangci-lint: invalid output json, see build log #54
Closed
Description
We're getting when golangci scans our repositories, with the following logs:
GOLANGCI_COM_RUN=1 golangci-lint run --out-format=json --issues-exit-code=0 --deadline=5m --new=false --new-from-rev= --new-from-patch=../changes.patch
Flag --deadline has been deprecated, flag will be removed soon, please, use .golangci.yml config
{"Issues":null,"Report":{"Linters":[{"Name" [...]
I guess the output containing the non-JSON line Flag --deadline has been deprecated, flag will be removed soon, please, use .golangci.yml
is problematic.
I raised the PR #53 to attempt to fix the issue. I also updated the flag in golangci-api with golangci/golangci-api#152.
Activity
jirfag commentedon Oct 14, 2019
fixed and released, thank you!
please, check
vthiery commentedon Oct 15, 2019
I'm actually still getting this error. Could it be that the container golangci/build-runner was not updated?
vthiery commentedon Oct 15, 2019
It just got updated (cf https://hub.docker.com/r/golangci/build-runner/tags) and the scans now work. So all good :)