You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running make scanner-docs or make hook-docs fails on OS X.
Describe the bug
$ make scanner-docs
# Start in the scanners foldercd scanners
# https://github.com/koalaman/shellcheck/wiki/SC2044
find . -type f -name Chart.yaml -print0 |while IFS= read -r -d '' chart;do
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [scanner-docs] Error 2
$ make hook-docs
.: ⚙ Generate Helm Docs.
# Start in the hooks foldercd hooks
# https://github.com/koalaman/shellcheck/wiki/SC2044
find . -type f -name Chart.yaml -print0 |while IFS= read -r -d '' chart;do
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [hook-docs] Error 2
Adding backslashes to the ends of all relevant lines of the make command results in new issues with "unexpected token: then", and fixing that results in errors where the variables aren't set correctly, so the cd fails etc. - it seems to be fairly fundamentally broken on OS X at the moment.
Root cause is that make shipped w/ macOS does not support .ONESHELL which has the effect that each line is run in its own subshell. So the initial cd into the scanners directory does not affect the find.
Activity
[-]make scanner-docs / hook-docs fails on OS X[/-][+]make scanner-docs / hook-docs fails on MacOS[/+]Weltraumschaf commentedon Feb 1, 2022
Root cause is that
makeshipped w/ macOS does not support.ONESHELLwhich has the effect that each line is run in its own subshell. So the initialcdinto the scanners directory does not affect thefind.#754 Add some vars w/ locations
#754 Remove .ONESHELL from scanner-docs target
#754 Add some vars w/ locations
#754 Remove .ONESHELL from scanner-docs target
#754 Break long lines for better readability
#754 Use variable to point to thehelm docs templates
#754 Extratc variable for docs dir
#754 Extratc variable for parser dir
#754 Extratc variable for scanner dir
#754 Change dir directly at necessary place
#754 Extract thew hole generation code into a shell script
75 remaining items
#754 Extract target to install operator
#754 Extract check for docs dir into main function
#754 Add some question markers
#754 Rename doc generation script
#754 Extract docs dir name into single variable
#754 Add function to generate the top level READMEs
#754 Rename var to reflect the dual use of it
#754 Add missing slash in template path for auto discovery docs
#754 Use generator script to generate top level READMEs
#754 Remove quotes from Makefile
#754 Answer the XXX tags
#754 Remove redundant argument of local template
#754 Derive the template name from output file name
[-]make scanner-docs / hook-docs fails on MacOS[/-][+]make scanner-docs / hook-docs fails on macOS[/+]