Skip to content

Fix terraform-validate hook #32

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

Merged
merged 2 commits into from
Jun 16, 2020
Merged

Fix terraform-validate hook #32

merged 2 commits into from
Jun 16, 2020

Conversation

yorinasub17
Copy link
Contributor

Fixes #31

@yorinasub17 yorinasub17 requested a review from brikis98 as a code owner June 12, 2020 22:02
# 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
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
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
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
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
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