-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
terraform_docs hook requires GNU sed #14
Comments
First, thanks for opening this issue! The question which I have been asking myself few times in several projects which version(s) of Will it be fine, if we just extend the script to print a statement that GNU sed should be installed? "pass" if GNU sed does not exist. It may be possible to rewrite it using Python (or anything else), but there will be the similar issue - which version of Python to expect (python 2.7 vs 3.x?) |
I ended up rewriting the sed commands in Perl, which should make the script more universally usable without external tools. See #15. |
Well, not excatly because it breaks setups in small docker images where perl is not installed (like the official
|
Make sure to install |
I kept getting this error when trying to use the
terraform_docs
hook:Further inspection revealed this is a limitation of the BSD
sed
shipping with the latest macOS:Running the same command using GNU sed (installed as
gsed
by Homebrew):The text was updated successfully, but these errors were encountered: