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

[tfswitch-parity] Transparently support .tfswitchrc files. #29

Closed
kvendingoldo opened this issue Jan 24, 2024 · 2 comments
Closed

[tfswitch-parity] Transparently support .tfswitchrc files. #29

kvendingoldo opened this issue Jan 24, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@kvendingoldo
Copy link
Collaborator

Describe the solution you'd like
Please replicate this feature from tfswitch. https://tfswitch.warrensbox.com/Quick-Start/#use-tfswitchrc-file

Additional context
It's backport of the original issue from tofuenv: tofuutils/tofuenv#35
cc @skyzyx

@kvendingoldo kvendingoldo added enhancement New feature or request good first issue Good for newcomers labels Jan 24, 2024
@dvaumoron
Copy link
Contributor

Priority between .tfswitchrc and .terraform-version files ? Do we need to support something like .tofuswitchrc for the OpenTofu part ?

@dvaumoron dvaumoron self-assigned this Jan 25, 2024
dvaumoron added a commit that referenced this issue Jan 25, 2024
@dvaumoron
Copy link
Contributor

dvaumoron commented Jan 25, 2024

Changed to check .tfswitchrc in working directory after .terraform-version there, and before user home directory or root directory (no search of .tfswitchrc in those other places).

No modification on the OpenTofu management part.

dvaumoron added a commit that referenced this issue Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants