Skip to content
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
@vthiery

Description

@vthiery

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

jirfag commented on Oct 14, 2019

@jirfag
Collaborator

fixed and released, thank you!

please, check

vthiery

vthiery commented on Oct 15, 2019

@vthiery
ContributorAuthor

I'm actually still getting this error. Could it be that the container golangci/build-runner was not updated?

vthiery

vthiery commented on Oct 15, 2019

@vthiery
ContributorAuthor

It just got updated (cf https://hub.docker.com/r/golangci/build-runner/tags) and the scans now work. So all good :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jirfag@vthiery

        Issue actions

          Can't run golangci-lint: invalid output json, see build log · Issue #54 · golangci/golangci-worker