Super-linter: Running locally seems to be "broken"

Created on 20 Jun 2020  路  4Comments  路  Source: github/super-linter

Describe the bug
when running the super-linter locally as described here it reports a success but it didn't lint anything.

To Reproduce
Steps to reproduce the behavior:

$ mkdir __test__
$ docker run -e RUN_LOCAL=true -v __test__:/tmp/lint github/super-linter:v2.1.0
--------------------------------------------------------------------------------
[... nice ASCI ART truncated ...]
--------------------------------------------------------------------------------

---------------------------------------------
--- GitHub Actions Multi Language Linter ----
---------------------------------------------

---------------------------------------------
The Super-Linter source code can be found at:
 - https://github.com/github/super-linter
---------------------------------------------
--------------------------------------------
Gathering GitHub information...
NOTE: ENV VAR [RUN_LOCAL] has been set to:[true]
bypassing GitHub Actions variables...
Linting all files in mapped directory:[/tmp/lint]

--------------------------------------------
Gathering user validation information...
awk: cmd. line:1: Unexpected end of string
awk: cmd. line:1: Unexpected end of string

----------------------------------------------
----------------------------------------------
The script has completed
----------------------------------------------
----------------------------------------------


All file(s) linted successfully with no errors detected
----------------------------------------------

Expected behavior

  • I expect the step "Gathering user validation information` shouldn't fail locally. (Should it even be executed?)
  • If it does the container should either exit or at least report that something didn't work.
bug

Most helpful comment

The release has been published and newer versions available without bug :)

All 4 comments

Hey @karfau! The awk error messages you were seeing were fixed in version v2.1.1.

Can you try again with that version, and let us know if you鈥檙e still seeing any issues?

Thanks!

~Well yes, but even when mapping my typescript source directory there is still no indication that it linted any file.~ (This time I had a CAPS_LOCK typo in my command.)
Would it be a good idea to ~either indicate how many files it found or even~ change the message to "No files found for linting" when this is the case?

Hey @karfau! The awk error messages you were seeing were fixed in version v2.1.1.

Can you try again with that version, and let us know if you鈥檙e still seeing any issues?

Thanks!

I don't see a release for 2.1.1.

The release has been published and newer versions available without bug :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rubenlopezlozoya picture rubenlopezlozoya  路  5Comments

dshevtsov picture dshevtsov  路  3Comments

bazzadp picture bazzadp  路  3Comments

bbaassssiiee picture bbaassssiiee  路  5Comments

ymd-h picture ymd-h  路  3Comments