salus icon indicating copy to clipboard operation
salus copied to clipboard

[DO NOT MERGE] auto fix spike

Open ghbren opened this issue 3 years ago • 0 comments

npm auto fix spike.

Use AUTOFIX in docker run.

docker run --rm  --env AUTOFIX=true -t -v $(pwd):/home/repo salus-local

Example 👍 output

%docker run --rm  --env AUTOFIX=true -t -v $(pwd):/home/repo salus-local

[INFORMATIONAL: 2022-06-30 17:38:19 +0000]: Salus is running.
**** RUNNING NPM AUTO FIX ****
Yay! npm audit fix ran successfully. Updated files renamed to
{"package-lock.json"=>"package-lock.json.autofix", "package.json"=>"package.json.autofix"}

Example 👎 output

% docker run --rm  --env AUTOFIX=true -t -v $(pwd):/home/repo salus-local

[INFORMATIONAL: 2022-06-30 17:41:48 +0000]: Salus is running.
**** RUNNING NPM AUTO FIX ****
ERROR! npm audit fix failed

ghbren avatar Jun 30 '22 05:06 ghbren