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

Super-linter actions fails without error #5335

Closed
1 task done
kaefferlein opened this issue Feb 27, 2024 · 18 comments · Fixed by #5336 or #5314
Closed
1 task done

Super-linter actions fails without error #5335

kaefferlein opened this issue Feb 27, 2024 · 18 comments · Fixed by #5336 or #5314
Labels
bug Something isn't working O: backlog 🤖 Backlog, stale ignores this label

Comments

@kaefferlein
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I am running a github action with the super-linter v6 and want a successful run. Yet it fails but states no error message. It just stops after the log message Building the list of files and directories to check.
The action job is marked as failed.

Expected Behavior

Successful run or error message

Super-Linter version

v6.2.0

Relevant log output

Super-Linter initialization
  --------------------------------------------------------------------------------
                                /@@#///////@@/(@//@%/(@.@(       @@
                            @@//////////////////////////////#*  @@@
                          @////@//(///////////@@@@@///@//@/@**//@@(
                        @///////@///////////////@@@@    (           @,
                       @/(&/@////////////////////                     @
                      @////////////////////////@@                      @
                    @%////////(//////////%/////&@            @@       *,@           ______________
               @@@@@/@/#/////(&//////////////////                       .@         /              \
          *@@@@@.    .%///(//@//////////////////&.   .@@,                 @%      / Don't mind me  \
        @@%           .&@&&/@.@//&/////(//////////    @@@@@@@@@         .. &@    / I'm just looking \
      @@%               @@@@@   @&/////////////////#   @/       V  @@/ ,@@@ @   <  for some trash... |
  @@@%                   @@@@        .%@@@@//////#@ @   @@         @     .,.     \__________________/
                                            @@@/@(  (@@@@% @/\      %
                                             @@@@(    .     .@@/\   #
                                               @                  %@%
  --------------------------------------------------------------------------------
  2024-02-27 09:54:46 [INFO]   ---------------------------------------------
  2024-02-27 09:54:46 [INFO]   --- GitHub Actions Multi Language Linter ----
  2024-02-27 09:54:46 [INFO]    - Image Creation Date: 2024-02-20T21:39:00Z
  2024-02-27 09:54:46 [INFO]    - Image Revision: 25003d0370b45d97187597838ecb9fdadfc08aea
  2024-02-27 09:54:46 [INFO]    - Image Version: 25003d0370b45d97187597838ecb9fdadfc08aea
  2024-02-27 09:54:46 [INFO]   ---------------------------------------------
  2024-02-27 09:54:46 [INFO]   ---------------------------------------------
  2024-02-27 09:54:46 [INFO]   The Super-Linter source code can be found at:
  2024-02-27 09:54:46 [INFO]    - https://github.com/super-linter/super-linter
  2024-02-27 09:54:46 [INFO]   ---------------------------------------------
  2024-02-27 09:54:46 [INFO]   - Validating changed files in code base...
  chktex: chktex: WARNING -- Could not find global resource file.
  ChkTeX v1.7.8 - Copyright 1995-96 Jens T. Berger Thielemann.
  Compiled with POSIX extended regex support.
  rubocop: 1.60.2
  perl: 
  This is perl 5, version 38, subversion 2 (v5.38.2) built for x86_64-linux-thread-multi
  Copyright 1987-2023, Larry Wall
  Perl may be copied only under the terms of either the Artistic License or the
  GNU General Public License, which may be found in the Perl 5 source kit.
  Complete documentation for Perl, including FAQ lists, should be found on
  this system using "man perl" or "perldoc perl".  If you have access to the
  Internet, point your browser at https://www.perl.org/, the Perl Home Page.
  xmllint: xmllint: using libxml version 21106
     compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 HTTP DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Schemas Schematron Modules Debug Zlib Lzma 
  ansible-lint: ansible-lint 24.2.0 using ansible-core:2.16.3 ansible-compat:4.1.11 ruamel-yaml:0.18.6 ruamel-yaml-clib:0.2.8
  eslint: v8.56.0
  markdownlint: 0.39.0
  snakefmt: snakefmt, version 0.10.0
  cpplint: Cpplint fork (https://github.com/cpplint/cpplint)
  cpplint 1.6.1
  Python 3.12.2 (main, Feb  7 2024, 22:13:24) [GCC 13.2.1 20231014]
  editorconfig-checker: 2.7.2
  gitleaks: v8.18.2
  phpstan: PHPStan - PHP Static Analysis Tool 1.10.48
  dotenv-linter: dotenv-linter 3.3.0
  asl-validator: 3.8.2
  actionlint: 1.6.26
  installed by building from source
  built with go1.21.1 compiler for linux/amd64
  tekton-lint: 1.0.0-beta.9
  terrascan: version: v1.18.11
  terraform: Terraform v1.7.3
  on linux_amd64
  2024/02/20 18:33:30 traces export: Post "http:///dev/otel-grpc.sock": http: no Host in request URL
  2024/02/20 18:33:30 traces export: Post "http:///dev/otel-grpc.sock": http: no Host in request URL
  clippy: clippy 0.1.72
  R: R version 4.3.1 (2023-06-16) -- "Beagle Scouts"
  Copyright (C) 2023 The R Foundation for Statistical Computing
  Platform: x86_64-pc-linux-musl (64-bit)
  R is free software and comes with ABSOLUTELY NO WARRANTY.
  You are welcome to redistribute it under the terms of the
  GNU General Public License versions 2 or 3.
  For more information about these matters see
  https://www.gnu.org/licenses/.
  rustfmt: rustfmt 1.6.0-stable ( )
  shellcheck: ShellCheck - shell script analysis tool
  version: 0.9.0
  license: GNU General Public License, version 3
  website: https://www.shellcheck.net
  jscpd: 3.5.10
  black: black, 24.2.0 (compiled: no)
  Python (CPython) 3.12.2
  prettier: 3.2.5
  php: PHP 8.2.15 (cli) (built: Jan 18 2024 16:40:05) (NTS)
  Copyright (c) The PHP Group
  Zend Engine v4.2.15, Copyright (c) Zend Technologies
  textlint: v14.0.3
  npm-groovy-lint: GroovyLint: Successfully processed CodeNarc: 
  CodeNarc version 3.3.0
  dart: Dart SDK version: 3.3.0 (stable) (Tue Feb 13 10:25:19 2024 +0000) on "linux_x64"
  isort: 
                   _                 _
                  (_) ___  ___  _ __| |_
                  | |/ _/ / _ \/ '__  _/
                  | |\__ \/\_\/| |  | |_
                  |_|\___/\___/\_/   \_/
        isort your imports, so you don't have to.
                      VERSION 5.13.2
  dotnet: 8.0.101
  eslint: v8.56.0
  rustfmt: rustfmt 1.6.0-stable ( )
  htmlhint: 1.1.4
  rustfmt: rustfmt 1.6.0-stable ( )
  sql-lint: 1.0.0
  checkov: 3.2.22
  lua: Lua 5.3.5  Copyright (C) 1994-2018 Lua.org, PUC-Rio
  standard: 17.1.0
  2024-02-27 09:54:46 [INFO]   --------------------------------------------
  2024-02-27 09:54:46 [INFO]   Gathering GitHub information...
  2024-02-27 09:54:46 [INFO]   Successfully validated GITHUB_WORKSPACE: /github/workspace
  2024-02-27 09:54:46 [INFO]   Successfully found GITHUB_EVENT_PATH: /github/workflow/event.json]
  2024-02-27 09:54:46 [INFO]   Successfully found GITHUB_SHA: <MY_SHA>
  2024-02-27 09:54:46 [INFO]   Successfully found GITHUB_ORG: <MY_ORG>
  2024-02-27 09:54:46 [INFO]   Successfully found GITHUB_REPO: <MY_REPO>
  2024-02-27 09:54:46 [INFO]   The default branch for this repository is set to: master
  2024-02-27 09:54:46 [INFO]   Successfully found GITHUB_TOKEN.
  2024-02-27 09:54:46 [INFO]   Successfully found GITHUB_REPOSITORY: <MY_ORG>/<MY_REPO>
  2024-02-27 09:54:46 [INFO]   Successfully found GITHUB_RUN_ID 8062771487
  2024-02-27 09:54:46 [INFO]   --------------------------------------------
  2024-02-27 09:54:46 [INFO]   Validating the configuration
  .git
  2024-02-27 09:54:47 [INFO]   The master branch doesn't exist in /github/workspace
  <SHA>
  2024-02-27 09:54:47 [INFO]   master doesn't exist, however origin/master exists. Setting DEFAULT_BRANCH to: origin/master
  2024-02-27 09:54:50 [INFO]   Building the list of files and directories to check

Steps To Reproduce

  1. create a github action workflow:
name: Lint GitHub Action Workflows

on: pull_request

jobs:
 super-linter:
   runs-on: ubuntu-latest

   permissions: read-all

   steps:
     - uses: actions/checkout@v4
       with:
         # super-linter needs the full git history to get the
         # list of files that changed across commits
         fetch-depth: 0
     - uses: super-linter/super-linter@v6
       env:
         DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         VALIDATE_ALL_CODEBASE: false
         VALIDATE_NATURAL_LANGUAGE: false
         VALIDATE_TYPESCRIPT_STANDARD: false
         VALIDATE_ANSIBLE: false
         FILTER_REGEX_EXCLUDE: .*/actions/link-checker-for-mms-gh-repos/dist/.*.js
         KUBERNETES_KUBECONFORM_OPTIONS: "-verbose -schema-location https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json"

  1. create a PR and check the linter

Anything else?

No response

@kaefferlein kaefferlein added the bug Something isn't working label Feb 27, 2024
@ferrarimarco
Copy link
Collaborator

Hi @kaefferlein !

Can you please re-run this with debug logging enabled?

@kaefferlein
Copy link
Author

@ferrarimarco sure :)
added LOG_LEVEL: DEBUG

debug-super-linter.txt

@ferrarimarco
Copy link
Collaborator

Thanks for providing the log. It doesn't appear that there's more info in that, unfortunately.

Quick question: is the workflow existing with an error on the super-linter step?

I see that it's correctly getting some files to lint (line 1822):

RAW_FILE_ARRAY contents: /github/workspace/.github/workflows/__lint-workflows.yaml /github/workspace/actions/run-terratest/action.yaml /github/workspace/actions/run-terratest/test/go.mod /github/workspace/actions/run-terratest/test/go.sum /github/workspace/actions/run-terratest/test/main_test.go�[0m

But then it stops and proceeds to clean up stuff.

PS: you can remove DEFAULT_BRANCH from your configuration if your default GitHub repository branch is correctly set. Super-linter can automatically get it since v6.1.0.

@kaefferlein
Copy link
Author

kaefferlein commented Feb 27, 2024

nice hint, thanks, then I will remove the default branch setting :)

Regarding: Quick question: is the workflow existing with an error on the super-linter step?

The workflow is marked as errored in the superlinter step - if I understood your question correctly.

Edit: if that might be a useful hint:
This is a private repository within an organization :)

@ferrarimarco
Copy link
Collaborator

added LOG_LEVEL: DEBUG

By the way, you can re-run workloads from the GitHub Actions UI, and tick the Enable debug logging box. It should have the same effect as setting LOG_LEVEL: DEBUG, if you don't want to change your config.

This is an interesting issue.

Does this happen if you run super-linter locally?

@kaefferlein
Copy link
Author

yes, this is really strange 😅

I ran it locally via:

docker run \ 
  -e LOG_LEVEL=DEBUG \
  -e RUN_LOCAL=true \
  -v /Users/me/git/repo:/tmp/lint \
  ghcr.io/super-linter/super-linter:latest

output of the last few lines:

...

2024-02-27 11:45:50 [DEBUG]   Loading rules for TYPESCRIPT_STANDARD_TSCONFIG...
2024-02-27 11:45:50 [DEBUG]   Getting linter rules for TYPESCRIPT_STANDARD_TSCONFIG...
2024-02-27 11:45:50 [DEBUG]   Default rules location: /action/lib/.automation...
2024-02-27 11:45:50 [DEBUG]   Variable names for language file name: TYPESCRIPT_STANDARD_TSCONFIG_FILE_NAME, language linter rules: TYPESCRIPT_STANDARD_TSCONFIG_LINTER_RULES
2024-02-27 11:45:50 [DEBUG]   TYPESCRIPT_STANDARD_TSCONFIG_FILE_NAME is not set. Skipping loading rules for TYPESCRIPT_STANDARD_TSCONFIG...
2024-02-27 11:45:51 [DEBUG]   ENV:[browser]
2024-02-27 11:45:51 [DEBUG]   ENV:[es6]
2024-02-27 11:45:51 [DEBUG]   ENV:[jest]
2024-02-27 11:45:51 [DEBUG]   User did not provide a SSL_CERT_SECRET
2024-02-27 11:45:51 [DEBUG]   Building file list...
2024-02-27 11:45:51 [DEBUG]   VALIDATE_ALL_CODEBASE: true
2024-02-27 11:45:51 [DEBUG]   TEST_CASE_RUN: false
2024-02-27 11:45:51 [DEBUG]   Populating the file list with: git -C "/tmp/lint" ls-tree -r --name-only HEAD | xargs -I % sh -c "echo /tmp/lint/%" 2>&1
2024-02-27 11:45:51 [DEBUG]   RAW_FILE_ARRAY contents: /tmp/lint/.github/CODEOWNERS /tmp/lint/.github/dependabot.yaml /tmp/lint/.github/workflows/__lint-workflows.yaml /tmp/lint/.github/workflows/__test-actions.yaml /tmp/lint/.github/workflows/generate-checklist-on-readme.yaml /tmp/lint/.github/workflows/provide-version-file.yaml /tmp/lint/.github/workflows/release-creator.yaml /tmp/lint/.github/workflows/terraform-module-pr-review.yaml /tmp/lint/.gitignore /tmp/lint/README.md /tmp/lint/actions/link-checker-for-mms-gh-repos/action.yaml /tmp/lint/actions/link-checker-for-mms-gh-repos/dist/index.js /tmp/lint/actions/link-checker-for-mms-gh-repos/package-lock.json /tmp/lint/actions/link-checker-for-mms-gh-repos/package.json /tmp/lint/actions/link-checker-for-mms-gh-repos/src/index.ts /tmp/lint/actions/link-checker-for-mms-gh-repos/src/textStyles.ts /tmp/lint/actions/link-checker-for-mms-gh-repos/src/utils.ts /tmp/lint/actions/link-checker-for-mms-gh-repos/test/base.md /tmp/lint/actions/link-checker-for-mms-gh-repos/test/cgl.json /tmp/lint/actions/link-checker-for-mms-gh-repos/test/subfolder/file1.md /tmp/lint/actions/link-checker-for-mms-gh-repos/test/subfolder/file2.md /tmp/lint/actions/link-checker-for-mms-gh-repos/tsconfig.build.json /tmp/lint/actions/link-checker-for-mms-gh-repos/tsconfig.json /tmp/lint/actions/run-terraform-cleaner/action.yaml /tmp/lint/actions/run-terraform-cleaner/test/test.tf /tmp/lint/actions/run-terratest/action.yaml /tmp/lint/actions/run-terratest/test/go.mod /tmp/lint/actions/run-terratest/test/go.sum /tmp/lint/actions/run-terratest/test/main_test.go /tmp/lint/actions/run-terratest/test/wrapper/no-config.tfvars /tmp/lint/actions/run-terratest/test/wrapper/test.tf /tmp/lint/actions/terraform-auto-fmt/action.yaml /tmp/lint/actions/terraform-auto-fmt/test/.terraform-docs.yml /tmp/lint/actions/terraform-auto-fmt/test/README.md /tmp/lint/actions/terraform-auto-fmt/test/__test_scripts/test-verify-changes-readme.sh /tmp/lint/actions/terraform-auto-fmt/test/__test_scripts/test-verify-changes-tf-file.sh /tmp/lint/actions/terraform-auto-fmt/test/terraform.tf /tmp/lint/actions/validate-flux2-k8s-manifests/action.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/kustomization.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/namespace.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/release.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/kustomization.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/podinfo-ingress.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/podinfo-values.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/clusters/staging/apps.yaml /tmp/lint/docs/README.md /tmp/lint/docs/terraform-module-pr-review.md
2024-02-27 11:45:51 [DEBUG]   Checking if we are in test mode before configuring the list of directories to lint. TEST_CASE_RUN: false
2024-02-27 11:45:51 [DEBUG]   Add GITHUB_WORKSPACE (/tmp/lint) to the list of files to lint because we might need it for linters that lint the whole workspace
2024-02-27 11:45:51 [DEBUG]   ANSIBLE_DIRECTORY (/tmp/lint/ansible) does NOT exist.
2024-02-27 11:45:51 [DEBUG]   PARALLEL_RESULTS_FILE_PATH when building the file list: /tmp/super-linter-parallel-results-build-file-list.json
2024-02-27 11:45:52 [DEBUG]   LOG_DEBUG is enabled. Enable verbose ouput for parallel
2024-02-27 11:45:52 [DEBUG]   PARALLEL_COMMAND to build the list of files and directories to lint: parallel --will-cite --keep-order --max-procs 2 --results /tmp/super-linter-parallel-results-build-file-list.json --xargs --verbose --max-lines 10 BuildFileArrays
2024-02-27 11:45:52 [DEBUG]   Created FILE_ARRAYS_DIRECTORY_PATH: /tmp/tmp.U31brhGNjn
2024-02-27 11:45:52 [INFO]   Building the list of files and directories to check
2024-02-27 11:45:53 [DEBUG]   Removing temporary files and directories
2024-02-27 11:45:53 [DEBUG]   LOG_FILE_PATH: /tmp/lint/super-linter.log
2024-02-27 11:45:53 [DEBUG]   Skipping the moving of the log file from /tmp/tmp.SJFKfTuqTR to /tmp/lint/super-linter.log

@ferrarimarco
Copy link
Collaborator

Thanks for all this data! What is the exit code that super-linter exits with?

@ferrarimarco
Copy link
Collaborator

Also, can you please try with super-linter v6.1.1 locally? I wonder if this is a regression. Thanks a lot!

@ferrarimarco ferrarimarco added the O: backlog 🤖 Backlog, stale ignores this label label Feb 27, 2024
@kaefferlein
Copy link
Author

kaefferlein commented Feb 27, 2024

first of all: Thanks a lot for your fast replies ❤️


Thanks for all this data! What is the exit code that super-linter exits with?

The local one: via docker ps -a (running with colima on macos)
7ff92b12b622 ghcr.io/super-linter/super-linter:latest "/action/lib/linter.…" About a minute ago Exited (5) 59 seconds ago charming_pasteur

with version 6.1.1:

docker run \ 
  -e LOG_LEVEL=DEBUG \
  -e RUN_LOCAL=true \
  -v /Users/me/git/repo:/tmp/lint \
  ghcr.io/super-linter/super-linter:v6.1.1

returned at least a FATAL 😁

... 

2024-02-27 12:04:16 [DEBUG]   Populating the file list with: git -C "/tmp/lint" ls-tree -r --name-only HEAD | xargs -I % sh -c "echo /tmp/lint/%" 2>&1
2024-02-27 12:04:16 [DEBUG]   RAW_FILE_ARRAY contents: /tmp/lint/.github/CODEOWNERS /tmp/lint/.github/dependabot.yaml /tmp/lint/.github/workflows/__lint-workflows.yaml /tmp/lint/.github/workflows/__test-actions.yaml /tmp/lint/.github/workflows/generate-checklist-on-readme.yaml /tmp/lint/.github/workflows/provide-version-file.yaml /tmp/lint/.github/workflows/release-creator.yaml /tmp/lint/.github/workflows/terraform-module-pr-review.yaml /tmp/lint/.gitignore /tmp/lint/README.md /tmp/lint/actions/link-checker-for-mms-gh-repos/action.yaml /tmp/lint/actions/link-checker-for-mms-gh-repos/dist/index.js /tmp/lint/actions/link-checker-for-mms-gh-repos/package-lock.json /tmp/lint/actions/link-checker-for-mms-gh-repos/package.json /tmp/lint/actions/link-checker-for-mms-gh-repos/src/index.ts /tmp/lint/actions/link-checker-for-mms-gh-repos/src/textStyles.ts /tmp/lint/actions/link-checker-for-mms-gh-repos/src/utils.ts /tmp/lint/actions/link-checker-for-mms-gh-repos/test/base.md /tmp/lint/actions/link-checker-for-mms-gh-repos/test/cgl.json /tmp/lint/actions/link-checker-for-mms-gh-repos/test/subfolder/file1.md /tmp/lint/actions/link-checker-for-mms-gh-repos/test/subfolder/file2.md /tmp/lint/actions/link-checker-for-mms-gh-repos/tsconfig.build.json /tmp/lint/actions/link-checker-for-mms-gh-repos/tsconfig.json /tmp/lint/actions/run-terraform-cleaner/action.yaml /tmp/lint/actions/run-terraform-cleaner/test/test.tf /tmp/lint/actions/run-terratest/action.yaml /tmp/lint/actions/run-terratest/test/go.mod /tmp/lint/actions/run-terratest/test/go.sum /tmp/lint/actions/run-terratest/test/main_test.go /tmp/lint/actions/run-terratest/test/wrapper/no-config.tfvars /tmp/lint/actions/run-terratest/test/wrapper/test.tf /tmp/lint/actions/terraform-auto-fmt/action.yaml /tmp/lint/actions/terraform-auto-fmt/test/.terraform-docs.yml /tmp/lint/actions/terraform-auto-fmt/test/README.md /tmp/lint/actions/terraform-auto-fmt/test/__test_scripts/test-verify-changes-readme.sh /tmp/lint/actions/terraform-auto-fmt/test/__test_scripts/test-verify-changes-tf-file.sh /tmp/lint/actions/terraform-auto-fmt/test/terraform.tf /tmp/lint/actions/validate-flux2-k8s-manifests/action.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/kustomization.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/namespace.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/release.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/kustomization.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/podinfo-ingress.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/podinfo-values.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/clusters/staging/apps.yaml /tmp/lint/docs/README.md /tmp/lint/docs/terraform-module-pr-review.md
2024-02-27 12:04:16 [DEBUG]   Checking if we are in test mode before configuring the list of directories to lint. TEST_CASE_RUN: false
2024-02-27 12:04:16 [DEBUG]   Add GITHUB_WORKSPACE (/tmp/lint) to the list of files to lint because we might need it for linters that lint the whole workspace
2024-02-27 12:04:16 [DEBUG]   ANSIBLE_DIRECTORY (/tmp/lint/ansible) does NOT exist.
2024-02-27 12:04:16 [DEBUG]   PARALLEL_RESULTS_FILE_PATH when building the file list: /tmp/super-linter-parallel-results-build-file-list.json
2024-02-27 12:04:16 [DEBUG]   LOG_DEBUG is enabled. Enable verbose ouput for parallel
2024-02-27 12:04:16 [DEBUG]   PARALLEL_COMMAND to build the list of files and directories to lint: parallel --will-cite --keep-order --max-procs 2 --results /tmp/super-linter-parallel-results-build-file-list.json --xargs --verbose --max-lines 10 BuildFileArrays
2024-02-27 12:04:16 [DEBUG]   Created FILE_ARRAYS_DIRECTORY_PATH: /tmp/tmp.h21ShJGmV6
2024-02-27 12:04:16 [INFO]   Building the list of files and directories to check
2024-02-27 12:04:18 [DEBUG]   PARALLEL_COMMAND_OUTPUT to build the file list (exit code: 5):
BuildFileArrays /tmp/lint/.github/CODEOWNERS /tmp/lint/.github/dependabot.yaml /tmp/lint/.github/workflows/__lint-workflows.yaml /tmp/lint/.github/workflows/__test-actions.yaml /tmp/lint/.github/workflows/generate-checklist-on-readme.yaml /tmp/lint/.github/workflows/provide-version-file.yaml /tmp/lint/.github/workflows/release-creator.yaml /tmp/lint/.github/workflows/terraform-module-pr-review.yaml /tmp/lint/.gitignore /tmp/lint/README.md
BuildFileArrays /tmp/lint/actions/link-checker-for-mms-gh-repos/action.yaml /tmp/lint/actions/link-checker-for-mms-gh-repos/dist/index.js /tmp/lint/actions/link-checker-for-mms-gh-repos/package-lock.json /tmp/lint/actions/link-checker-for-mms-gh-repos/package.json /tmp/lint/actions/link-checker-for-mms-gh-repos/src/index.ts /tmp/lint/actions/link-checker-for-mms-gh-repos/src/textStyles.ts /tmp/lint/actions/link-checker-for-mms-gh-repos/src/utils.ts /tmp/lint/actions/link-checker-for-mms-gh-repos/test/base.md /tmp/lint/actions/link-checker-for-mms-gh-repos/test/cgl.json /tmp/lint/actions/link-checker-for-mms-gh-repos/test/subfolder/file1.md
BuildFileArrays /tmp/lint/actions/link-checker-for-mms-gh-repos/test/subfolder/file2.md /tmp/lint/actions/link-checker-for-mms-gh-repos/tsconfig.build.json /tmp/lint/actions/link-checker-for-mms-gh-repos/tsconfig.json /tmp/lint/actions/run-terraform-cleaner/action.yaml /tmp/lint/actions/run-terraform-cleaner/test/test.tf /tmp/lint/actions/run-terratest/action.yaml /tmp/lint/actions/run-terratest/test/go.mod /tmp/lint/actions/run-terratest/test/go.sum /tmp/lint/actions/run-terratest/test/main_test.go /tmp/lint/actions/run-terratest/test/wrapper/no-config.tfvars
BuildFileArrays /tmp/lint/actions/run-terratest/test/wrapper/test.tf /tmp/lint/actions/terraform-auto-fmt/action.yaml /tmp/lint/actions/terraform-auto-fmt/test/.terraform-docs.yml /tmp/lint/actions/terraform-auto-fmt/test/README.md /tmp/lint/actions/terraform-auto-fmt/test/__test_scripts/test-verify-changes-readme.sh /tmp/lint/actions/terraform-auto-fmt/test/__test_scripts/test-verify-changes-tf-file.sh /tmp/lint/actions/terraform-auto-fmt/test/terraform.tf /tmp/lint/actions/validate-flux2-k8s-manifests/action.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/kustomization.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/namespace.yaml
BuildFileArrays /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/release.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/kustomization.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/podinfo-ingress.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/podinfo-values.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/clusters/staging/apps.yaml /tmp/lint/docs/README.md /tmp/lint/docs/terraform-module-pr-review.md /tmp/lint
2024-02-27 12:04:18 [DEBUG]   Parallel output file (/tmp/super-linter-parallel-results-build-file-list.json) contents when building the file list:
{ "Seq": 1, "Host": ":", "Starttime": 1709035458.181, "JobRuntime": 0.040, "Send": 0, "Receive": 0, "Exitval": 127, "Signal": 0, "Command": "BuildFileArrays /tmp/lint/.github/CODEOWNERS /tmp/lint/.github/dependabot.yaml /tmp/lint/.github/workflows/__lint-workflows.yaml /tmp/lint/.github/workflows/__test-actions.yaml /tmp/lint/.github/workflows/generate-checklist-on-readme.yaml /tmp/lint/.github/workflows/provide-version-file.yaml /tmp/lint/.github/workflows/release-creator.yaml /tmp/lint/.github/workflows/terraform-module-pr-review.yaml /tmp/lint/.gitignore /tmp/lint/README.md", "V": [ "/tmp/lint/.github/CODEOWNERS","/tmp/lint/.github/dependabot.yaml","/tmp/lint/.github/workflows/__lint-workflows.yaml","/tmp/lint/.github/workflows/__test-actions.yaml","/tmp/lint/.github/workflows/generate-checklist-on-readme.yaml","/tmp/lint/.github/workflows/provide-version-file.yaml","/tmp/lint/.github/workflows/release-creator.yaml","/tmp/lint/.github/workflows/terraform-module-pr-review.yaml","/tmp/lint/.gitignore","/tmp/lint/README.md" ], "Stdout": "", "Stderr": "/bin/sh: BuildFileArrays: not found
" }
{ "Seq": 2, "Host": ":", "Starttime": 1709035458.188, "JobRuntime": 0.046, "Send": 0, "Receive": 0, "Exitval": 127, "Signal": 0, "Command": "BuildFileArrays /tmp/lint/actions/link-checker-for-mms-gh-repos/action.yaml /tmp/lint/actions/link-checker-for-mms-gh-repos/dist/index.js /tmp/lint/actions/link-checker-for-mms-gh-repos/package-lock.json /tmp/lint/actions/link-checker-for-mms-gh-repos/package.json /tmp/lint/actions/link-checker-for-mms-gh-repos/src/index.ts /tmp/lint/actions/link-checker-for-mms-gh-repos/src/textStyles.ts /tmp/lint/actions/link-checker-for-mms-gh-repos/src/utils.ts /tmp/lint/actions/link-checker-for-mms-gh-repos/test/base.md /tmp/lint/actions/link-checker-for-mms-gh-repos/test/cgl.json /tmp/lint/actions/link-checker-for-mms-gh-repos/test/subfolder/file1.md", "V": [ "/tmp/lint/actions/link-checker-for-mms-gh-repos/action.yaml","/tmp/lint/actions/link-checker-for-mms-gh-repos/dist/index.js","/tmp/lint/actions/link-checker-for-mms-gh-repos/package-lock.json","/tmp/lint/actions/link-checker-for-mms-gh-repos/package.json","/tmp/lint/actions/link-checker-for-mms-gh-repos/src/index.ts","/tmp/lint/actions/link-checker-for-mms-gh-repos/src/textStyles.ts","/tmp/lint/actions/link-checker-for-mms-gh-repos/src/utils.ts","/tmp/lint/actions/link-checker-for-mms-gh-repos/test/base.md","/tmp/lint/actions/link-checker-for-mms-gh-repos/test/cgl.json","/tmp/lint/actions/link-checker-for-mms-gh-repos/test/subfolder/file1.md" ], "Stdout": "", "Stderr": "/bin/sh: BuildFileArrays: not found
" }
{ "Seq": 3, "Host": ":", "Starttime": 1709035458.232, "JobRuntime": 0.039, "Send": 0, "Receive": 0, "Exitval": 127, "Signal": 0, "Command": "BuildFileArrays /tmp/lint/actions/link-checker-for-mms-gh-repos/test/subfolder/file2.md /tmp/lint/actions/link-checker-for-mms-gh-repos/tsconfig.build.json /tmp/lint/actions/link-checker-for-mms-gh-repos/tsconfig.json /tmp/lint/actions/run-terraform-cleaner/action.yaml /tmp/lint/actions/run-terraform-cleaner/test/test.tf /tmp/lint/actions/run-terratest/action.yaml /tmp/lint/actions/run-terratest/test/go.mod /tmp/lint/actions/run-terratest/test/go.sum /tmp/lint/actions/run-terratest/test/main_test.go /tmp/lint/actions/run-terratest/test/wrapper/no-config.tfvars", "V": [ "/tmp/lint/actions/link-checker-for-mms-gh-repos/test/subfolder/file2.md","/tmp/lint/actions/link-checker-for-mms-gh-repos/tsconfig.build.json","/tmp/lint/actions/link-checker-for-mms-gh-repos/tsconfig.json","/tmp/lint/actions/run-terraform-cleaner/action.yaml","/tmp/lint/actions/run-terraform-cleaner/test/test.tf","/tmp/lint/actions/run-terratest/action.yaml","/tmp/lint/actions/run-terratest/test/go.mod","/tmp/lint/actions/run-terratest/test/go.sum","/tmp/lint/actions/run-terratest/test/main_test.go","/tmp/lint/actions/run-terratest/test/wrapper/no-config.tfvars" ], "Stdout": "", "Stderr": "/bin/sh: BuildFileArrays: not found
" }
{ "Seq": 4, "Host": ":", "Starttime": 1709035458.251, "JobRuntime": 0.045, "Send": 0, "Receive": 0, "Exitval": 127, "Signal": 0, "Command": "BuildFileArrays /tmp/lint/actions/run-terratest/test/wrapper/test.tf /tmp/lint/actions/terraform-auto-fmt/action.yaml /tmp/lint/actions/terraform-auto-fmt/test/.terraform-docs.yml /tmp/lint/actions/terraform-auto-fmt/test/README.md /tmp/lint/actions/terraform-auto-fmt/test/__test_scripts/test-verify-changes-readme.sh /tmp/lint/actions/terraform-auto-fmt/test/__test_scripts/test-verify-changes-tf-file.sh /tmp/lint/actions/terraform-auto-fmt/test/terraform.tf /tmp/lint/actions/validate-flux2-k8s-manifests/action.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/kustomization.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/namespace.yaml", "V": [ "/tmp/lint/actions/run-terratest/test/wrapper/test.tf","/tmp/lint/actions/terraform-auto-fmt/action.yaml","/tmp/lint/actions/terraform-auto-fmt/test/.terraform-docs.yml","/tmp/lint/actions/terraform-auto-fmt/test/README.md","/tmp/lint/actions/terraform-auto-fmt/test/__test_scripts/test-verify-changes-readme.sh","/tmp/lint/actions/terraform-auto-fmt/test/__test_scripts/test-verify-changes-tf-file.sh","/tmp/lint/actions/terraform-auto-fmt/test/terraform.tf","/tmp/lint/actions/validate-flux2-k8s-manifests/action.yaml","/tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/kustomization.yaml","/tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/namespace.yaml" ], "Stdout": "", "Stderr": "/bin/sh: BuildFileArrays: not found
" }
{ "Seq": 5, "Host": ":", "Starttime": 1709035458.280, "JobRuntime": 0.041, "Send": 0, "Receive": 0, "Exitval": 127, "Signal": 0, "Command": "BuildFileArrays /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/release.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/kustomization.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/podinfo-ingress.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/podinfo-values.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/clusters/staging/apps.yaml /tmp/lint/docs/README.md /tmp/lint/docs/terraform-module-pr-review.md /tmp/lint", "V": [ "/tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/release.yaml","/tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/kustomization.yaml","/tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/podinfo-ingress.yaml","/tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/podinfo-values.yaml","/tmp/lint/actions/validate-flux2-k8s-manifests/test/clusters/staging/apps.yaml","/tmp/lint/docs/README.md","/tmp/lint/docs/terraform-module-pr-review.md","/tmp/lint" ], "Stdout": "", "Stderr": "/bin/sh: BuildFileArrays: not found
" }
2024-02-27 12:04:18 [DEBUG]   RESULTS_OBJECT when building the file list:
[
  {
    "Seq": 1,
    "Host": ":",
    "Starttime": 1709035458.181,
    "JobRuntime": 0.040,
    "Send": 0,
    "Receive": 0,
    "Exitval": 127,
    "Signal": 0,
    "Command": "BuildFileArrays /tmp/lint/.github/CODEOWNERS /tmp/lint/.github/dependabot.yaml /tmp/lint/.github/workflows/__lint-workflows.yaml /tmp/lint/.github/workflows/__test-actions.yaml /tmp/lint/.github/workflows/generate-checklist-on-readme.yaml /tmp/lint/.github/workflows/provide-version-file.yaml /tmp/lint/.github/workflows/release-creator.yaml /tmp/lint/.github/workflows/terraform-module-pr-review.yaml /tmp/lint/.gitignore /tmp/lint/README.md",
    "V": [
      "/tmp/lint/.github/CODEOWNERS",
      "/tmp/lint/.github/dependabot.yaml",
      "/tmp/lint/.github/workflows/__lint-workflows.yaml",
      "/tmp/lint/.github/workflows/__test-actions.yaml",
      "/tmp/lint/.github/workflows/generate-checklist-on-readme.yaml",
      "/tmp/lint/.github/workflows/provide-version-file.yaml",
      "/tmp/lint/.github/workflows/release-creator.yaml",
      "/tmp/lint/.github/workflows/terraform-module-pr-review.yaml",
      "/tmp/lint/.gitignore",
      "/tmp/lint/README.md"
    ],
    "Stdout": "",
    "Stderr": "/bin/sh: BuildFileArrays: not found
"
  },
  {
    "Seq": 2,
    "Host": ":",
    "Starttime": 1709035458.188,
    "JobRuntime": 0.046,
    "Send": 0,
    "Receive": 0,
    "Exitval": 127,
    "Signal": 0,
    "Command": "BuildFileArrays /tmp/lint/actions/link-checker-for-mms-gh-repos/action.yaml /tmp/lint/actions/link-checker-for-mms-gh-repos/dist/index.js /tmp/lint/actions/link-checker-for-mms-gh-repos/package-lock.json /tmp/lint/actions/link-checker-for-mms-gh-repos/package.json /tmp/lint/actions/link-checker-for-mms-gh-repos/src/index.ts /tmp/lint/actions/link-checker-for-mms-gh-repos/src/textStyles.ts /tmp/lint/actions/link-checker-for-mms-gh-repos/src/utils.ts /tmp/lint/actions/link-checker-for-mms-gh-repos/test/base.md /tmp/lint/actions/link-checker-for-mms-gh-repos/test/cgl.json /tmp/lint/actions/link-checker-for-mms-gh-repos/test/subfolder/file1.md",
    "V": [
      "/tmp/lint/actions/link-checker-for-mms-gh-repos/action.yaml",
      "/tmp/lint/actions/link-checker-for-mms-gh-repos/dist/index.js",
      "/tmp/lint/actions/link-checker-for-mms-gh-repos/package-lock.json",
      "/tmp/lint/actions/link-checker-for-mms-gh-repos/package.json",
      "/tmp/lint/actions/link-checker-for-mms-gh-repos/src/index.ts",
      "/tmp/lint/actions/link-checker-for-mms-gh-repos/src/textStyles.ts",
      "/tmp/lint/actions/link-checker-for-mms-gh-repos/src/utils.ts",
      "/tmp/lint/actions/link-checker-for-mms-gh-repos/test/base.md",
      "/tmp/lint/actions/link-checker-for-mms-gh-repos/test/cgl.json",
      "/tmp/lint/actions/link-checker-for-mms-gh-repos/test/subfolder/file1.md"
    ],
    "Stdout": "",
    "Stderr": "/bin/sh: BuildFileArrays: not found
"
  },
  {
    "Seq": 3,
    "Host": ":",
    "Starttime": 1709035458.232,
    "JobRuntime": 0.039,
    "Send": 0,
    "Receive": 0,
    "Exitval": 127,
    "Signal": 0,
    "Command": "BuildFileArrays /tmp/lint/actions/link-checker-for-mms-gh-repos/test/subfolder/file2.md /tmp/lint/actions/link-checker-for-mms-gh-repos/tsconfig.build.json /tmp/lint/actions/link-checker-for-mms-gh-repos/tsconfig.json /tmp/lint/actions/run-terraform-cleaner/action.yaml /tmp/lint/actions/run-terraform-cleaner/test/test.tf /tmp/lint/actions/run-terratest/action.yaml /tmp/lint/actions/run-terratest/test/go.mod /tmp/lint/actions/run-terratest/test/go.sum /tmp/lint/actions/run-terratest/test/main_test.go /tmp/lint/actions/run-terratest/test/wrapper/no-config.tfvars",
    "V": [
      "/tmp/lint/actions/link-checker-for-mms-gh-repos/test/subfolder/file2.md",
      "/tmp/lint/actions/link-checker-for-mms-gh-repos/tsconfig.build.json",
      "/tmp/lint/actions/link-checker-for-mms-gh-repos/tsconfig.json",
      "/tmp/lint/actions/run-terraform-cleaner/action.yaml",
      "/tmp/lint/actions/run-terraform-cleaner/test/test.tf",
      "/tmp/lint/actions/run-terratest/action.yaml",
      "/tmp/lint/actions/run-terratest/test/go.mod",
      "/tmp/lint/actions/run-terratest/test/go.sum",
      "/tmp/lint/actions/run-terratest/test/main_test.go",
      "/tmp/lint/actions/run-terratest/test/wrapper/no-config.tfvars"
    ],
    "Stdout": "",
    "Stderr": "/bin/sh: BuildFileArrays: not found
"
  },
  {
    "Seq": 4,
    "Host": ":",
    "Starttime": 1709035458.251,
    "JobRuntime": 0.045,
    "Send": 0,
    "Receive": 0,
    "Exitval": 127,
    "Signal": 0,
    "Command": "BuildFileArrays /tmp/lint/actions/run-terratest/test/wrapper/test.tf /tmp/lint/actions/terraform-auto-fmt/action.yaml /tmp/lint/actions/terraform-auto-fmt/test/.terraform-docs.yml /tmp/lint/actions/terraform-auto-fmt/test/README.md /tmp/lint/actions/terraform-auto-fmt/test/__test_scripts/test-verify-changes-readme.sh /tmp/lint/actions/terraform-auto-fmt/test/__test_scripts/test-verify-changes-tf-file.sh /tmp/lint/actions/terraform-auto-fmt/test/terraform.tf /tmp/lint/actions/validate-flux2-k8s-manifests/action.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/kustomization.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/namespace.yaml",
    "V": [
      "/tmp/lint/actions/run-terratest/test/wrapper/test.tf",
      "/tmp/lint/actions/terraform-auto-fmt/action.yaml",
      "/tmp/lint/actions/terraform-auto-fmt/test/.terraform-docs.yml",
      "/tmp/lint/actions/terraform-auto-fmt/test/README.md",
      "/tmp/lint/actions/terraform-auto-fmt/test/__test_scripts/test-verify-changes-readme.sh",
      "/tmp/lint/actions/terraform-auto-fmt/test/__test_scripts/test-verify-changes-tf-file.sh",
      "/tmp/lint/actions/terraform-auto-fmt/test/terraform.tf",
      "/tmp/lint/actions/validate-flux2-k8s-manifests/action.yaml",
      "/tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/kustomization.yaml",
      "/tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/namespace.yaml"
    ],
    "Stdout": "",
    "Stderr": "/bin/sh: BuildFileArrays: not found
"
  },
  {
    "Seq": 5,
    "Host": ":",
    "Starttime": 1709035458.280,
    "JobRuntime": 0.041,
    "Send": 0,
    "Receive": 0,
    "Exitval": 127,
    "Signal": 0,
    "Command": "BuildFileArrays /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/release.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/kustomization.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/podinfo-ingress.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/podinfo-values.yaml /tmp/lint/actions/validate-flux2-k8s-manifests/test/clusters/staging/apps.yaml /tmp/lint/docs/README.md /tmp/lint/docs/terraform-module-pr-review.md /tmp/lint",
    "V": [
      "/tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/base/podinfo/release.yaml",
      "/tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/kustomization.yaml",
      "/tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/podinfo-ingress.yaml",
      "/tmp/lint/actions/validate-flux2-k8s-manifests/test/apps/staging/podinfo-values.yaml",
      "/tmp/lint/actions/validate-flux2-k8s-manifests/test/clusters/staging/apps.yaml",
      "/tmp/lint/docs/README.md",
      "/tmp/lint/docs/terraform-module-pr-review.md",
      "/tmp/lint"
    ],
    "Stdout": "",
    "Stderr": "/bin/sh: BuildFileArrays: not found
"
  }
]
2024-02-27 12:04:18 [DEBUG]   Stdout when building the file list is empty
2024-02-27 12:04:18 [INFO]   Stderr when building the file list:
------
/bin/sh: BuildFileArrays: not found
/bin/sh: BuildFileArrays: not found
/bin/sh: BuildFileArrays: not found
/bin/sh: BuildFileArrays: not found
/bin/sh: BuildFileArrays: not found
------
2024-02-27 12:04:18 [FATAL]   Error when building the list of files and directories to lint.
2024-02-27 12:04:18 [DEBUG]   Removing temporary files and directories
2024-02-27 12:04:18 [DEBUG]   LOG_FILE_PATH: /tmp/lint/super-linter.log
2024-02-27 12:04:18 [DEBUG]   Skipping the moving of the log file from /tmp/tmp.yAYtFwkhyD to /tmp/lint/super-linter.log

I also used v6.1.1 in the github action and got this output:

2024-02-27 12:08:03 [DEBUG]   RAW_FILE_ARRAY contents: /github/workspace/.github/workflows/__lint-workflows.yaml /github/workspace/actions/run-terratest/action.yaml /github/workspace/actions/run-terratest/test/go.mod /github/workspace/actions/run-terratest/test/go.sum /github/workspace/actions/run-terratest/test/main_test.go
  2024-02-27 12:08:03 [DEBUG]   Checking if we are in test mode before configuring the list of directories to lint. TEST_CASE_RUN: false
  2024-02-27 12:08:03 [DEBUG]   Add GITHUB_WORKSPACE (/github/workspace) to the list of files to lint because we might need it for linters that lint the whole workspace
  2024-02-27 12:08:03 [DEBUG]   ANSIBLE_DIRECTORY (/github/workspace/ansible) does NOT exist.
  2024-02-27 12:08:03 [DEBUG]   PARALLEL_RESULTS_FILE_PATH when building the file list: /tmp/super-linter-parallel-results-build-file-list.json
  2024-02-27 12:08:03 [DEBUG]   LOG_DEBUG is enabled. Enable verbose ouput for parallel
  2024-02-27 12:08:03 [DEBUG]   PARALLEL_COMMAND to build the list of files and directories to lint: parallel --will-cite --keep-order --max-procs 2 --results /tmp/super-linter-parallel-results-build-file-list.json --xargs --verbose --max-lines 10 BuildFileArrays
  2024-02-27 12:08:03 [DEBUG]   Created FILE_ARRAYS_DIRECTORY_PATH: /tmp/tmp.z8P7MDD1XG
  2024-02-27 12:08:03 [INFO]   Building the list of files and directories to check
  2024-02-27 12:08:04 [DEBUG]   PARALLEL_COMMAND_OUTPUT to build the file list (exit code: 1):
  BuildFileArrays /github/workspace/.github/workflows/__lint-workflows.yaml /github/workspace/actions/run-terratest/action.yaml /github/workspace/actions/run-terratest/test/go.mod /github/workspace/actions/run-terratest/test/go.sum /github/workspace/actions/run-terratest/test/main_test.go /github/workspace
  2024-02-27 12:08:04 [DEBUG]   Parallel output file (/tmp/super-linter-parallel-results-build-file-list.json) contents when building the file list:
  { "Seq": 1, "Host": ":", "Starttime": 1709035684.332, "JobRuntime": 0.239, "Send": 0, "Receive": 5414, "Exitval": 1, "Signal": 0, "Command": "BuildFileArrays /github/workspace/.github/workflows/__lint-workflows.yaml /github/workspace/actions/run-terratest/action.yaml /github/workspace/actions/run-terratest/test/go.mod /github/workspace/actions/run-terratest/test/go.sum /github/workspace/actions/run-terratest/test/main_test.go /github/workspace", "V": [ "/github/workspace/.github/workflows/__lint-workflows.yaml","/github/workspace/actions/run-terratest/action.yaml","/github/workspace/actions/run-terratest/test/go.mod","/github/workspace/actions/run-terratest/test/go.sum","/github/workspace/actions/run-terratest/test/main_test.go","/github/workspace" ], "Stdout": "2024-02-27 12:08:04 [DEBUG]   Categorizing the following files: /github/workspace/.github/workflows/__lint-workflows.yaml /github/workspace/actions/run-terratest/action.yaml /github/workspace/actions/run-terratest/test/go.mod /github/workspace/actions/run-terratest/test/go.sum /github/workspace/actions/run-terratest/test/main_test.go /github/workspace
  2024-02-27 12:08:04 [DEBUG]   FILTER_REGEX_INCLUDE: , FILTER_REGEX_EXCLUDE: .*/actions/link-checker-for-mms-gh-repos/dist/.*.js
  2024-02-27 12:08:04 [DEBUG]   IGNORE_GENERATED_FILES has a valid boolean string value: false
  2024-02-27 12:08:04 [DEBUG]   IGNORE_GITIGNORED_FILES has a valid boolean string value: false
  2024-02-27 12:08:04 [DEBUG]   FILE: /github/workspace/.github/workflows/__lint-workflows.yaml, FILE_TYPE: yaml, BASE_FILE: __lint-workflows.yaml, FILE_DIR_NAME: /github/workspace/.github/workflows
  2024-02-27 12:08:04 [DEBUG]   Don't include /github/workspace/.github/workflows/__lint-workflows.yaml in the list of files to lint with editorconfig-checker because the workspace doesn't contain an EditorConfig file: /github/workspace/.editorconfig
  2024-02-27 12:08:04 [DEBUG]   File:[/github/workspace/.github/workflows/__lint-workflows.yaml], File extension:[yaml], File type: [/github/workspace/.github/workflows/__lint-workflows.yaml: exported SGML document, ASCII text]
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/.github/workflows/__lint-workflows.yaml is NOT a supported shell script. Skipping
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/.github/workflows/__lint-workflows.yaml is a GitHub Actions file...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/.github/workflows/__lint-workflows.yaml is GitHub Actions file.
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/.github/workflows/__lint-workflows.yaml is a Cloud Formation file...
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/.github/workflows/__lint-workflows.yaml is an OpenAPI file...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/.github/workflows/__lint-workflows.yaml is NOT an OpenAPI descriptor
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/.github/workflows/__lint-workflows.yaml is a Tekton file...
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/.github/workflows/__lint-workflows.yaml is a Kubernetes descriptor...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/.github/workflows/__lint-workflows.yaml is NOT a Kubernetes descriptor
  2024-02-27 12:08:04 [DEBUG]   FILE: /github/workspace/actions/run-terratest/action.yaml, FILE_TYPE: yaml, BASE_FILE: action.yaml, FILE_DIR_NAME: /github/workspace/actions/run-terratest
  2024-02-27 12:08:04 [DEBUG]   Don't include /github/workspace/actions/run-terratest/action.yaml in the list of files to lint with editorconfig-checker because the workspace doesn't contain an EditorConfig file: /github/workspace/.editorconfig
  2024-02-27 12:08:04 [DEBUG]   File:[/github/workspace/actions/run-terratest/action.yaml], File extension:[yaml], File type: [/github/workspace/actions/run-terratest/action.yaml: ASCII text]
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/actions/run-terratest/action.yaml is NOT a supported shell script. Skipping
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/actions/run-terratest/action.yaml is a GitHub Actions file...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/actions/run-terratest/action.yaml is NOT GitHub Actions file.
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/actions/run-terratest/action.yaml is a Cloud Formation file...
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/actions/run-terratest/action.yaml is an OpenAPI file...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/actions/run-terratest/action.yaml is NOT an OpenAPI descriptor
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/actions/run-terratest/action.yaml is a Tekton file...
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/actions/run-terratest/action.yaml is a Kubernetes descriptor...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/actions/run-terratest/action.yaml is NOT a Kubernetes descriptor
  2024-02-27 12:08:04 [DEBUG]   FILE: /github/workspace/actions/run-terratest/test/go.mod, FILE_TYPE: mod, BASE_FILE: go.mod, FILE_DIR_NAME: /github/workspace/actions/run-terratest/test
  2024-02-27 12:08:04 [DEBUG]   Don't include /github/workspace/actions/run-terratest/test/go.mod in the list of files to lint with editorconfig-checker because the workspace doesn't contain an EditorConfig file: /github/workspace/.editorconfig
  2024-02-27 12:08:04 [DEBUG]   Found /github/workspace/actions/run-terratest/test/go.mod. Checking if individual Go file linting is enabled as well.
  2024-02-27 12:08:04 [DEBUG]   Checking if we are running tests. TEST_CASE_RUN: 
  2024-02-27 12:08:04 [FATAL]   Set VALIDATE_GO to false to avoid false positives due to analyzing Go files in the /github/workspace/actions/run-terratest/test directory individually instead of considering them in the context of a Go module.
  ", "Stderr": "" }
  2024-02-27 12:08:04 [DEBUG]   RESULTS_OBJECT when building the file list:
  [
    {
      "Seq": 1,
      "Host": ":",
      "Starttime": 1709035684.332,
      "JobRuntime": 0.239,
      "Send": 0,
      "Receive": 5414,
      "Exitval": 1,
      "Signal": 0,
      "Command": "BuildFileArrays /github/workspace/.github/workflows/__lint-workflows.yaml /github/workspace/actions/run-terratest/action.yaml /github/workspace/actions/run-terratest/test/go.mod /github/workspace/actions/run-terratest/test/go.sum /github/workspace/actions/run-terratest/test/main_test.go /github/workspace",
      "V": [
        "/github/workspace/.github/workflows/__lint-workflows.yaml",
        "/github/workspace/actions/run-terratest/action.yaml",
        "/github/workspace/actions/run-terratest/test/go.mod",
        "/github/workspace/actions/run-terratest/test/go.sum",
        "/github/workspace/actions/run-terratest/test/main_test.go",
        "/github/workspace"
      ],
      "Stdout": "2024-02-27 12:08:04 [DEBUG]   Categorizing the following files: /github/workspace/.github/workflows/__lint-workflows.yaml /github/workspace/actions/run-terratest/action.yaml /github/workspace/actions/run-terratest/test/go.mod /github/workspace/actions/run-terratest/test/go.sum /github/workspace/actions/run-terratest/test/main_test.go /github/workspace
  2024-02-27 12:08:04 [DEBUG]   FILTER_REGEX_INCLUDE: , FILTER_REGEX_EXCLUDE: .*/actions/link-checker-for-mms-gh-repos/dist/.*.js
  2024-02-27 12:08:04 [DEBUG]   IGNORE_GENERATED_FILES has a valid boolean string value: false
  2024-02-27 12:08:04 [DEBUG]   IGNORE_GITIGNORED_FILES has a valid boolean string value: false
  2024-02-27 12:08:04 [DEBUG]   FILE: /github/workspace/.github/workflows/__lint-workflows.yaml, FILE_TYPE: yaml, BASE_FILE: __lint-workflows.yaml, FILE_DIR_NAME: /github/workspace/.github/workflows
  2024-02-27 12:08:04 [DEBUG]   Don't include /github/workspace/.github/workflows/__lint-workflows.yaml in the list of files to lint with editorconfig-checker because the workspace doesn't contain an EditorConfig file: /github/workspace/.editorconfig
  2024-02-27 12:08:04 [DEBUG]   File:[/github/workspace/.github/workflows/__lint-workflows.yaml], File extension:[yaml], File type: [/github/workspace/.github/workflows/__lint-workflows.yaml: exported SGML document, ASCII text]
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/.github/workflows/__lint-workflows.yaml is NOT a supported shell script. Skipping
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/.github/workflows/__lint-workflows.yaml is a GitHub Actions file...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/.github/workflows/__lint-workflows.yaml is GitHub Actions file.
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/.github/workflows/__lint-workflows.yaml is a Cloud Formation file...
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/.github/workflows/__lint-workflows.yaml is an OpenAPI file...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/.github/workflows/__lint-workflows.yaml is NOT an OpenAPI descriptor
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/.github/workflows/__lint-workflows.yaml is a Tekton file...
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/.github/workflows/__lint-workflows.yaml is a Kubernetes descriptor...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/.github/workflows/__lint-workflows.yaml is NOT a Kubernetes descriptor
  2024-02-27 12:08:04 [DEBUG]   FILE: /github/workspace/actions/run-terratest/action.yaml, FILE_TYPE: yaml, BASE_FILE: action.yaml, FILE_DIR_NAME: /github/workspace/actions/run-terratest
  2024-02-27 12:08:04 [DEBUG]   Don't include /github/workspace/actions/run-terratest/action.yaml in the list of files to lint with editorconfig-checker because the workspace doesn't contain an EditorConfig file: /github/workspace/.editorconfig
  2024-02-27 12:08:04 [DEBUG]   File:[/github/workspace/actions/run-terratest/action.yaml], File extension:[yaml], File type: [/github/workspace/actions/run-terratest/action.yaml: ASCII text]
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/actions/run-terratest/action.yaml is NOT a supported shell script. Skipping
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/actions/run-terratest/action.yaml is a GitHub Actions file...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/actions/run-terratest/action.yaml is NOT GitHub Actions file.
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/actions/run-terratest/action.yaml is a Cloud Formation file...
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/actions/run-terratest/action.yaml is an OpenAPI file...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/actions/run-terratest/action.yaml is NOT an OpenAPI descriptor
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/actions/run-terratest/action.yaml is a Tekton file...
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/actions/run-terratest/action.yaml is a Kubernetes descriptor...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/actions/run-terratest/action.yaml is NOT a Kubernetes descriptor
  2024-02-27 12:08:04 [DEBUG]   FILE: /github/workspace/actions/run-terratest/test/go.mod, FILE_TYPE: mod, BASE_FILE: go.mod, FILE_DIR_NAME: /github/workspace/actions/run-terratest/test
  2024-02-27 12:08:04 [DEBUG]   Don't include /github/workspace/actions/run-terratest/test/go.mod in the list of files to lint with editorconfig-checker because the workspace doesn't contain an EditorConfig file: /github/workspace/.editorconfig
  2024-02-27 12:08:04 [DEBUG]   Found /github/workspace/actions/run-terratest/test/go.mod. Checking if individual Go file linting is enabled as well.
  2024-02-27 12:08:04 [DEBUG]   Checking if we are running tests. TEST_CASE_RUN: 
  2024-02-27 12:08:04 [FATAL]   Set VALIDATE_GO to false to avoid false positives due to analyzing Go files in the /github/workspace/actions/run-terratest/test directory individually instead of considering them in the context of a Go module.
  ",
      "Stderr": ""
    }
  ]
  2024-02-27 12:08:04 [INFO]   Command output when building the file list:
  ------
  2024-02-27 12:08:04 [DEBUG]   Categorizing the following files: /github/workspace/.github/workflows/__lint-workflows.yaml /github/workspace/actions/run-terratest/action.yaml /github/workspace/actions/run-terratest/test/go.mod /github/workspace/actions/run-terratest/test/go.sum /github/workspace/actions/run-terratest/test/main_test.go /github/workspace
  2024-02-27 12:08:04 [DEBUG]   FILTER_REGEX_INCLUDE: , FILTER_REGEX_EXCLUDE: .*/actions/link-checker-for-mms-gh-repos/dist/.*.js
  2024-02-27 12:08:04 [DEBUG]   IGNORE_GENERATED_FILES has a valid boolean string value: false
  2024-02-27 12:08:04 [DEBUG]   IGNORE_GITIGNORED_FILES has a valid boolean string value: false
  2024-02-27 12:08:04 [DEBUG]   FILE: /github/workspace/.github/workflows/__lint-workflows.yaml, FILE_TYPE: yaml, BASE_FILE: __lint-workflows.yaml, FILE_DIR_NAME: /github/workspace/.github/workflows
  2024-02-27 12:08:04 [DEBUG]   Don't include /github/workspace/.github/workflows/__lint-workflows.yaml in the list of files to lint with editorconfig-checker because the workspace doesn't contain an EditorConfig file: /github/workspace/.editorconfig
  2024-02-27 12:08:04 [DEBUG]   File:[/github/workspace/.github/workflows/__lint-workflows.yaml], File extension:[yaml], File type: [/github/workspace/.github/workflows/__lint-workflows.yaml: exported SGML document, ASCII text]
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/.github/workflows/__lint-workflows.yaml is NOT a supported shell script. Skipping
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/.github/workflows/__lint-workflows.yaml is a GitHub Actions file...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/.github/workflows/__lint-workflows.yaml is GitHub Actions file.
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/.github/workflows/__lint-workflows.yaml is a Cloud Formation file...
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/.github/workflows/__lint-workflows.yaml is an OpenAPI file...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/.github/workflows/__lint-workflows.yaml is NOT an OpenAPI descriptor
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/.github/workflows/__lint-workflows.yaml is a Tekton file...
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/.github/workflows/__lint-workflows.yaml is a Kubernetes descriptor...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/.github/workflows/__lint-workflows.yaml is NOT a Kubernetes descriptor
  2024-02-27 12:08:04 [DEBUG]   FILE: /github/workspace/actions/run-terratest/action.yaml, FILE_TYPE: yaml, BASE_FILE: action.yaml, FILE_DIR_NAME: /github/workspace/actions/run-terratest
  2024-02-27 12:08:04 [DEBUG]   Don't include /github/workspace/actions/run-terratest/action.yaml in the list of files to lint with editorconfig-checker because the workspace doesn't contain an EditorConfig file: /github/workspace/.editorconfig
  2024-02-27 12:08:04 [DEBUG]   File:[/github/workspace/actions/run-terratest/action.yaml], File extension:[yaml], File type: [/github/workspace/actions/run-terratest/action.yaml: ASCII text]
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/actions/run-terratest/action.yaml is NOT a supported shell script. Skipping
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/actions/run-terratest/action.yaml is a GitHub Actions file...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/actions/run-terratest/action.yaml is NOT GitHub Actions file.
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/actions/run-terratest/action.yaml is a Cloud Formation file...
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/actions/run-terratest/action.yaml is an OpenAPI file...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/actions/run-terratest/action.yaml is NOT an OpenAPI descriptor
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/actions/run-terratest/action.yaml is a Tekton file...
  2024-02-27 12:08:04 [DEBUG]   Checking if /github/workspace/actions/run-terratest/action.yaml is a Kubernetes descriptor...
  2024-02-27 12:08:04 [DEBUG]   /github/workspace/actions/run-terratest/action.yaml is NOT a Kubernetes descriptor
  2024-02-27 12:08:04 [DEBUG]   FILE: /github/workspace/actions/run-terratest/test/go.mod, FILE_TYPE: mod, BASE_FILE: go.mod, FILE_DIR_NAME: /github/workspace/actions/run-terratest/test
  2024-02-27 12:08:04 [DEBUG]   Don't include /github/workspace/actions/run-terratest/test/go.mod in the list of files to lint with editorconfig-checker because the workspace doesn't contain an EditorConfig file: /github/workspace/.editorconfig
  2024-02-27 12:08:04 [DEBUG]   Found /github/workspace/actions/run-terratest/test/go.mod. Checking if individual Go file linting is enabled as well.
  2024-02-27 12:08:04 [DEBUG]   Checking if we are running tests. TEST_CASE_RUN: 
  2024-02-27 12:08:04 [FATAL]   Set VALIDATE_GO to false to avoid false positives due to analyzing Go files in the /github/workspace/actions/run-terratest/test directory individually instead of considering them in the context of a Go module.
  ------
  2024-02-27 12:08:04 [DEBUG]   Stderr when building the file list is empty
  2024-02-27 12:08:04 [FATAL]   Error when building the list of files and directories to lint.
  2024-02-27 12:08:04 [DEBUG]   Removing temporary files and directories
  2024-02-27 12:08:04 [DEBUG]   LOG_FILE_PATH: /github/workspace/super-linter.log
  2024-02-27 12:08:04 [DEBUG]   Skipping the moving of the log file from /tmp/tmp.d2de1lSkdg to /github/workspace/super-linter.log

@ferrarimarco
Copy link
Collaborator

Ah, this is indeed a bug. Thanks for this report, I'll quickly have a PR out to fix this.

@kaefferlein
Copy link
Author

awesome!

ferrarimarco added a commit that referenced this issue Feb 27, 2024
Don't immediately exit on errors because this will hide diagnostic
information, and linter output.

Fix #5335
@ferrarimarco
Copy link
Collaborator

#5336 should take care of this.

ferrarimarco added a commit that referenced this issue Feb 27, 2024
Don't immediately exit on errors because this will hide diagnostic
information, and linter output.

Fix #5335
ferrarimarco added a commit that referenced this issue Feb 27, 2024
Don't immediately exit on errors because this will hide diagnostic
information, and linter output.

Fix #5335

ci: add docs updates to changelog
ferrarimarco added a commit that referenced this issue Feb 27, 2024
Don't immediately exit on errors because this will hide diagnostic
information, and linter output.

Fix #5335

ci: add docs updates to changelog
@ferrarimarco
Copy link
Collaborator

@kaefferlein this shouldn't happen anymore. Can you please try again with the latest image?

You might have to pull it to ensure that it's the new one. (Revision: 4a05d78ed4b49bf1498547cac9beb5fa1dc496e7)

Thanks!

@hajapy
Copy link

hajapy commented Feb 29, 2024

@ferrarimarco I've been running into this as well. I can reproduce the issue with latest-slim image. Reproduction steps:

  1. Clone this repo (super-linter/super-linter)
  2. git rev-parse HEAD
    6c1f40c
  3. make SUPER_LINTER_TEST_CONTAINER_URL=ghcr.io/super-linter/super-linter:slim-latest@sha256:5c73796a5ba0a5b6811712bfb2a58cc39346a92ccafd28f570ab46ea16e68e61 lint-codebase | tee log.txt

(This is the most recent super-linter:slim-latest, says pushed 9 hours ago. Using slim to test due to smaller image size.)

See attached log.txt

Snippet of errors:

...

  {
    "Seq": 42,
    "Host": ":",
    "Starttime": 1709166454.902,
    "JobRuntime": 0.036,
    "Send": 0,
    "Receive": 0,
    "Exitval": 127,
    "Signal": 0,
    "Command": "BuildFileArrays /tmp/lint/test/linters/xml/xsd_bad_1.xsd /tmp/lint/test/linters/xml/xsd_good_1.xsd /tmp/lint/test/linters/yaml/yml_bad_1.yml /tmp/lint/test/linters/yaml/yml_good_1.yml /tmp/lint/test/run-super-linter-tests.sh /tmp/lint/test/validate-docker-labels.sh /tmp/lint/version.txt /tmp/lint",
    "V": [
      "/tmp/lint/test/linters/xml/xsd_bad_1.xsd",
      "/tmp/lint/test/linters/xml/xsd_good_1.xsd",
      "/tmp/lint/test/linters/yaml/yml_bad_1.yml",
      "/tmp/lint/test/linters/yaml/yml_good_1.yml",
      "/tmp/lint/test/run-super-linter-tests.sh",
      "/tmp/lint/test/validate-docker-labels.sh",
      "/tmp/lint/version.txt",
      "/tmp/lint"
    ],
    "Stdout": "",
    "Stderr": "/bin/sh: BuildFileArrays: not found
"
  }

...

/bin/sh: BuildFileArrays: not found
/bin/sh: BuildFileArrays: not found
/bin/sh: BuildFileArrays: not found
/bin/sh: BuildFileArrays: not found
/bin/sh: BuildFileArrays: not found
------
2024-02-29 00:27:35 [FATAL]   Error when building the list of files and directories to lint.
2024-02-29 00:27:35 [DEBUG]   Captured exit code: 1
2024-02-29 00:27:35 [DEBUG]   Removing temporary files and directories
2024-02-29 00:27:35 [DEBUG]   LOG_FILE_PATH: /tmp/lint/super-linter.log
2024-02-29 00:27:35 [DEBUG]   Skipping the moving of the log file from /tmp/tmp.k9y3EiHek2 to /tmp/lint/super-linter.log
make: *** [lint-codebase] Error 1

@hajapy
Copy link

hajapy commented Feb 29, 2024

I think the problem may be that

export -f BuildFileArrays
is a bash capability but the parallel command is running in sh, which according to https://stackoverflow.com/a/23815646 can be resolved by setting

SHELL=$(type -p bash) parallel

when building the parallel command

PARALLEL_COMMAND=(parallel --will-cite --keep-order --max-procs "$(($(nproc) * 1))" --xargs --results "${PARALLEL_RESULTS_FILE_PATH}")

e7bc280fd46d:/# doit() { echo "$@"; }
e7bc280fd46d:/# export -f doit
e7bc280fd46d:/# parallel --will-cite doit ::: 1 2 3
/bin/sh: doit: not found
/bin/sh: doit: not found
/bin/sh: doit: not found
e7bc280fd46d:/# SHELL=$(type -p bash) parallel --will-cite doit ::: 1 2 3
1
2
3

@ferrarimarco
Copy link
Collaborator

Hi @hajapy !

I think what you're experiencing is a different issue. Can you please open a new report?

Thanks!

@hajapy
Copy link

hajapy commented Feb 29, 2024

@ferrarimarco sure thing, new issue created: #5339

I came across this one because the above error snippet also included /bin/sh: BuildFileArrays: not found, but you are right I think the masking of the error output is a separate issue, which fixing has helped identify a further issue :)

@ferrarimarco
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working O: backlog 🤖 Backlog, stale ignores this label
Projects
None yet
3 participants