Skip to content
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

refactor: Update Terraform directory setup for parallelism #8

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

Excoriate
Copy link
Owner

Refactor the SetupTerraformDirForParallelism function to use the new tfdir
package for calculating the relative path to the git repo root. This
improves the code readability and maintainability.

feat: Add functions to validate Terraform files and directories

Introduce new functions in the validation package to check if a directory
contains Terraform files with specific extensions and if a directory is a
valid Terraform module directory. These functions enhance the validation
capabilities for Terraform configurations.

feat: Add IsAGitRepository function

Include a new function in the utils package to determine if a directory
is a git repository. This function verifies the presence of a .git
directory within the provided path, enhancing the git repository
detection process.

fix: Update test file for scenario with retry options

Adjust the test file for scenarios with retry options to include the
correct package import for the tfdir package, ensuring the test
functionality remains consistent.

Refactor the SetupTerraformDirForParallelism function to use the new tfdir
package for calculating the relative path to the git repo root. This
improves the code readability and maintainability.

feat: Add functions to validate Terraform files and directories

Introduce new functions in the validation package to check if a directory
contains Terraform files with specific extensions and if a directory is a
valid Terraform module directory. These functions enhance the validation
capabilities for Terraform configurations.

feat: Add IsAGitRepository function

Include a new function in the utils package to determine if a directory
is a git repository. This function verifies the presence of a .git
directory within the provided path, enhancing the git repository
detection process.

fix: Update test file for scenario with retry options

Adjust the test file for scenarios with retry options to include the
correct package import for the tfdir package, ensuring the test
functionality remains consistent.
@Excoriate Excoriate merged commit 2d06eea into main Mar 28, 2024
7 of 11 checks passed
@Excoriate Excoriate deleted the feat/update-terraform-git-utils-fixes branch March 28, 2024 10:10
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.

1 participant