-
-
Notifications
You must be signed in to change notification settings - Fork 8
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] 0.12 support #7
Conversation
grep -Eo '^\s*source\s*=\s*"(.*?)"' *.tf | cut -d'"' -f2 | sort -u > $TMPFILE | ||
if [ -s $TMPFILE ]; then | ||
# Verify the modules are pinned to `tags/x.y` or nothing at all (maybe using `version` parameter instead) | ||
sed 's/^.*?ref=//' < $TMPFILE | grep -E '^(tags/[0-9]+\.[0-9]+.*|)$' |
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.
why in '^(tags/[0-9]+\.[0-9]+.*|)$'
, the first .
escaped \.
, but the second one not?
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.
The second one is not matching a .
, but saying anything else (e.g 1.0
or 1.0-alpha
or 1.0.2`, etc)
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.
see comments
what
terraform-docs
to work with HCL2json2hcl
which won't support HCl2why
references