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

Apply the -chdir option before resolving implied provider filesystem mirror directories #31443

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

fnickels
Copy link
Contributor

Fixes Bug reported in #31442

The code to reset the current working directory was previously called after the local providers checked in implicitProviderSource() is called.

I simply moved up the block of code handling the reset of the current working directory ahead of providerSource() which subsequently calls implicitProviderSource() .

I have compiled and tested the code to verify it fixes the cited issue, but can not be 100% sure there are no other side effects from this change. I cannot think of any situation where you need to maintain the CWD when specifying -chdir, but there could be some side effects I am not aware of.

@hashicorp-cla
Copy link

hashicorp-cla commented Jul 14, 2022

CLA assistant check
All committers have signed the CLA.

@crw
Copy link
Collaborator

crw commented Jul 15, 2022

Thanks for this submission. Although I cannot commit to having this PR reviewed at this time, we acknowledge your contribution and appreciate it! We will discuss it in our weekly triage meeting. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants