super-linter: [FATAL] Failed to view version file:[/action/lib/functions/linterVersions.txt]

For last 2 days, I am getting the error
[FATAL] Failed to view version file:[/action/lib/functions/linterVersions.txt]

I am using flake8 for linting and there’s no lint errors locally. In super linter workflow log also, there’s no mention of bug error, but the above specified error. The setup was working before, so is it something related to the project or super-linter ? Is anybody else facing such issue?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 15
  • Comments: 27

Commits related to this issue

Most upvoted comments

use uses: github/super-linter@v3.17.0 works, thanks

Hey all, this issue is because of the hotpatch push of a critical bug fix in 3.x. This will not be fixed and the solution is to move to the 4.x release cycle.

thank you and sorry for any issues this may have caused

This will not be fixed and the solution is to move to the 4.x release cycle.

Thanks, v4 works for me

uses: github/super-linter@v4

use uses: github/super-linter@v3.17.0 works, thanks

This works!

we encountered the same issue

use uses: github/super-linter@v3.17.0 works, thanks

Same worked for me as well. I replaced @v3 with @v3.17.0 and it worked.

@v3.17.0

Thank You. Changing the @v3 to this @v3.17.0 made it work. Cheers

uses: github/super-linter@v3.17.0 Thanks…worked for me too 👍

use uses: github/super-linter@v3.17.0 works, thanks

Thank you!

      - name: Checkout code
        uses: actions/checkout@v3

      - name: Run Super-Linter
        uses: github/super-linter@v4

I tried uses: github/super-linter@v4 it works but it caused following failures

2022-01-07 18:35:11 [ERROR]   Found errors in [actionlint] linter!
2022-01-07 18:35:11 [ERROR]   Error code: 1. Command output:
------
.github/workflows/test.yml:34:9: shellcheck reported issue in this script: SC2002:style:1:5: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead [shellcheck]
   |
34 |         run: |
   |         ^~~~
.github/workflows/test.yml:34:9: shellcheck reported issue in this script: SC2002:style:2:5: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead [shellcheck]
   |
34 |         run: |
   |         ^~~~
.github/workflows/test.yml:60:9: shellcheck reported issue in this script: SC2086:info:2:10: Double quote to prevent globbing and word splitting [shellcheck]
   |
60 |         run: |
   |         ^~~~
------

it means it is not a simple change to v4

Hey all, the v4 change did introduce a few other small changes but I would assume most users would not hit those small edge cases. v4 allowed for the slim image and some better coding ideas. So please come on over 😃

use 3.17.0 should be a temp workaround

Workaround

https://circleci.com/developer/orbs/orb/circleci/github-super-linter

version: '2.1'
orbs:
  github-super-linter: circleci/github-super-linter@1.0
workflows:
  lint-code:
    jobs:
      - github-super-linter/lint:
          context: Super-Linter-Options
          version: v3.17.0

The default is v3 - so I rolled back to a previous v3 version - pick one here: https://hub.docker.com/r/github/super-linter/tags?page=1&name=v3

Hello,

We are also facing same issue. Please help to resolve the issue.