Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

paullschock
Copy link
Contributor

@paullschock paullschock commented Jul 25, 2020

Proposing that tfenv 'min-required' first searches the working directory before recursing.

In this case if the first grep does not return exit code 0, || operator will instead run grep -R and keep searching

This prevents unexpected version matches in cases where path based child modules might have their own required_version blocks. Since terraform itself first parses the base directory, it would seem reasonable tfenv would follow suit.

Proposing that tfenv 'min-required' only first searches the working directory first, before recursing. This prevents unexpected version matches in cases where path based child modules might have their own required_version blocks. Since terraform itself first parses the base directory, it would seem reasonable tfenv would follow suit.
@paullschock
Copy link
Contributor Author

Sorry for that commit message length, it was a small change and I did it via github visual editor and realized right after what I'd done.

Zordrak
Zordrak previously approved these changes Jan 30, 2021
@Zordrak Zordrak merged commit 64522ab into tfutils:master Jan 30, 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.

2 participants