Skip to content

Fix terraform-validate hook - #32

Merged
yorinasub17 merged 2 commits into
masterfrom
yori-fix-tfvalidate
Jun 16, 2020
Merged

Fix terraform-validate hook#32
yorinasub17 merged 2 commits into
masterfrom
yori-fix-tfvalidate

Conversation

@yorinasub17

Copy link
Copy Markdown
Contributor

Fixes #31

@yorinasub17
yorinasub17 requested a review from brikis98 as a code owner June 12, 2020 22:02
Comment thread hooks/adoclink-check.sh Outdated
# workaround to allow GitHub Desktop to work, add this (hopefully harmless) setting here.
export PATH=$PATH:/usr/local/bin

if ! command -v asciidoc-link-check; then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this related to this PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh! This is a WIP script that I did not intend to check in. Removed! 96f2c4f

Comment on lines +12 to +13
terraform init -backend=false
terraform validate

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is dir not necessary because of the pushd above?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup. In fact, dir is a relative path, which is why it is breaking.

@yorinasub17

Copy link
Copy Markdown
Contributor Author

Thanks for review! I verified this works on one of our repos. Going to merge this in now!

@yorinasub17
yorinasub17 merged commit 4373c1e into master Jun 16, 2020
@yorinasub17
yorinasub17 deleted the yori-fix-tfvalidate branch June 16, 2020 01:22
joelbcastillo pushed a commit to Hyperfine/pre-commit that referenced this pull request Dec 29, 2021
…gh-sponsors

Add link to GitHub Sponsors + Open Collective
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

terraform-validate breaks after 0.1.5

2 participants