Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Action: no go files to analyze #855

Closed
hazcod opened this issue Nov 14, 2019 · 4 comments
Closed

Github Action: no go files to analyze #855

hazcod opened this issue Nov 14, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@hazcod
Copy link

hazcod commented Nov 14, 2019

Github action: https://github.com/ironPeakServices/iron-redis/blob/master/.github/workflows/pr.yaml#L4

on: pull_request
name: PR Checks
jobs:
  golanglint:
    name: golang lint
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - uses: actions-contrib/golangci-lint@master
      with:
        args: run ./healthcheck/
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

However, it always complains about missing Go files, e..g https://github.com/ironPeakServices/iron-redis/commit/8e6df88762d8969a148ff6e7946c7cdb36c388db/checks?check_suite_id=310531360

msg="Running error: context loading failed: package github.com/go-redis/redis: no go files to analyze"

Any ideas? I have .Go files in healthcheck/.
The github.com/ directory seems to be in vendor/, which should automatically be ignored since --skip-dirs is the default, right?

@cyw3
Copy link

cyw3 commented Nov 14, 2019

the same error.

@hazcod
Copy link
Author

hazcod commented Nov 22, 2019

Caused by #865

@fdcds
Copy link

fdcds commented Feb 13, 2020

Probably a duplicate of #825.

@jirfag
Copy link
Member

jirfag commented May 18, 2020

Duplicate of #825.
Also, I've made golangci/golangci-lint-action#15

@jirfag jirfag closed this as completed May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants