Skip to content

Error with version v1.15.0 and go modules #58

@smutel

Description

@smutel

Hello,

The action-golangci-lint worked correctly with version 1.14.1.
With version 1.15.0, I have the error message below and lint is no longer working:

Run reviewdog/[email protected]
  with:
    github_token: ***
    golangci_lint_flags: --config=.golangci.yml
    fail_on_error: true
    tool_name: golangci
    level: error
    reporter: github-pr-check
    filter_mode: added
    workdir: .
🐶 Installing reviewdog ... https://github.com/reviewdog/reviewdog
 Installing golangci-lint ... https://github.com/golangci/golangci-lint
 Running golangci-lint with reviewdog 🐶 ...
  level=error msg="Running error: context loading failed: failed to load packages: failed to load with go/packages: err: exit status 1: stderr: build flag -mod=vendor only valid when using modules\n"
  2021/01/01 20:49:27 [golangci] reported: https://github.com/smutel/terraform-provider-netbox/runs/1634636986 (conclusion=success)

Thanks.

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

    Issue actions