Super-linter: Failed to find [rustfmt] in system - user not 0 (root)

Created on 10 Mar 2021  路  2Comments  路  Source: github/super-linter

Describe the bug

If user of container is not root (user 0) this error message is shown:

Failed to find [rustfmt] in system!

I'm seeing this error, because my k8s distro (openshift) won't allow to run containers with root, it will start them with some random user > 1000, which only belongs to group root.

Failed to find [rustfmt] in system!

Expected behavior

There's someone looking for trash.

Steps to Reproduce

To reproduce locally, with user '1000':

docker run -i -t --entrypoint=/action/lib/linter.sh -e RUN_LOCAL=true -u 1000 -v ${PWD}:/tmp/lint github/super-linter
2021-03-10 08:58:26 [FATAL]   Failed to find [rustfmt] in system!

However running with root works:

docker run -i -t --entrypoint=/action/lib/linter.sh -e RUN_LOCAL=true -u 0 -v ${PWD}:/tmp/lint github/super-linter
--------------------------------------------------------------------------------

                              /@@#///////@@/(@//@%/(@.@(       @@
                          @@//////////////////////////////#*  @@@
                        @////@//(///////////@@@@@///@//@/@**//@@(
                      @///////@///////////////@@@@    (           @,
                     @/(&/@////////////////////                     @
                    @////////////////////////@@                      @
                  @%////////(//////////%/////&@            @@       *,@           ______________
             @@@@@/@/#/////(&//////////////////                       .@         /              \
        *@@@@@.    .%///(//@//////////////////&.   .@@,                 @%      / Don't mind me  \
      @@%           .&@&&/@.@//&/////(//////////    @@@@@@@@@         .. &@    / I'm just looking \
    @@%               @@@@@   @&/////////////////#   @/       V  @@/ ,@@@ @   <  for some trash... |
@@@%                   @@@@        .%@@@@//////#@ @   @@         @     .,.     \__________________/
                                          @@@/@(  (@@@@% @/\      %
                                           @@@@(    .     .@@/\   #
                                             @                  %@%

--------------------------------------------------------------------------------

Logs

see above

Additional context

might be related to #1153

bug

All 2 comments

i got the same problem... why is this ticket closed?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zkoppert picture zkoppert  路  3Comments

IlanCosman picture IlanCosman  路  4Comments

krtschmr picture krtschmr  路  4Comments

brunomartinspro picture brunomartinspro  路  4Comments

tihuan picture tihuan  路  4Comments