Skip to content

Clone policies repo once #329

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

Conversation

juliocc
Copy link
Contributor

@juliocc juliocc commented Feb 5, 2021

Currently tf_plan_validate_all calls tf_validate multiple times, which means the policies repo getting cloned multiple times. This results in an error the second time the clone is attempted since the path already exists

With this PR, tf-wrapper.sh verifies the existence of /workspace/.policies-cloned before attempting to clone.

@juliocc juliocc marked this pull request as ready for review February 5, 2021 17:26
@juliocc juliocc requested review from bharathkkb, rjerrems and a team as code owners February 5, 2021 17:26
Copy link
Member

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

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

@rjerrems rjerrems merged commit 58dafa1 into terraform-google-modules:develop Feb 24, 2021
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.

None yet

3 participants