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
docs: Replace non-portable "sed -i" in Makefile #27122
Conversation
Heads up that |
I didn't know that. OK I'll update with |
We recently added a call to "sed" in Documentation's Makefile, as part of the generation process for the Helm reference. We use the "-i" option to edit the file in-place; but this option is not portable, and the command fails when running BSD versions of sed, for example on MacOS, as opposed to GNU sed. We have two options to fix this: using $(SED), which is set to gsed when available, and using an additional temporary file. Let's use both to have the Makefile as portable as possible. Fixes: 2e9b20f ("docs: Ignore Helm value names for spellcheck") Reported-by: Liz Rice <liz@lizrice.com> Signed-off-by: Quentin Monnet <quentin@isovalent.com>
52af96c
to
a6ecf8d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just a heads up though, I'm on Linux and haven't tested BSD or Mac OS.
/test |
We recently added a call to
sed
in Documentation's Makefile, as part of the generation process for the Helm reference. We use the-i
option to edit the file in-place; but this option is not portable, and the command fails when running BSD versions of sed, for example on MacOS, as opposed to GNU sed.Let's fix the command by using an additional temporary file.
Fixes: 2e9b20f ("docs: Ignore Helm value names for spellcheck")