-
Notifications
You must be signed in to change notification settings - Fork 484
refactor: use -chdir in terraform_validate wrapper
#2617
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: use -chdir in terraform_validate wrapper
#2617
Conversation
infra/build/developer-tools/build/scripts/task_wrapper_scripts/terraform_validate
Outdated
Show resolved
Hide resolved
|
Docs generation is another place where I think the pushd / popd might not be needed and where the code might be simpler / more readable without it. |
|
/gcbrun |
-chdir and -upgrade in terraform_validate wrapper-chdir in terraform_validate wrapper
infra/build/developer-tools/build/scripts/task_wrapper_scripts/terraform_validate
Show resolved
Hide resolved
46b8d36 to
53da8da
Compare
-chdir in terraform_validate wrapper-chdir in terraform_validate wrapper
|
updated the commit type to |
|
/gcbrun |
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.
Thanks for the contribution @wyardley!
Just to be safe/proper, let's bump the patch here: https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/build/Makefile#L59, and then this is ready to merge!
- Use Terraform's `-chdir` option rather than `cd`
53da8da to
3efe333
Compare
|
Ok, and then bump the version in #2619 again after merge? Right now, they would both be at the same patch level. |
Exactly, a bit of extra work, but I'd like to get this PR merged/released today. |
|
/gcbrun |
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.
Thanks for the contribution @wyardley!
-chdiroption rather thancd