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

Terraform workspace prompt doesn't work with opentofu #548

Open
Feriixu opened this issue Dec 13, 2024 · 0 comments
Open

Terraform workspace prompt doesn't work with opentofu #548

Feriixu opened this issue Dec 13, 2024 · 0 comments
Labels
🐛 bug Something isn't working

Comments

@Feriixu
Copy link

Feriixu commented Dec 13, 2024

Describe the bug

When having terraform installed, or an alias set to terraform=tofu, everything works as expected.
However, I believe this is unintuitive and tide should automatically use tofu instead of terraform when terraform is not available.

Steps to reproduce

  1. Install opentofu, but not terraform
  2. Go into any terraform project with a workspace selected
  3. See that the prompt fails because the terraform command is not available (tofu would be available)
fish: Unknown command: terraform
~/.config/fish/functions/_tide_item_terraform.fish (line 3): 
        terraform workspace show | string match -v default | read -l w &&
        ^~~~~~~~^
in function '_tide_item_terraform'
	called on line 11 of file ~/.config/fish/functions/_tide_1_line_prompt.fish
in function '_tide_1_line_prompt'
in command substitution
@Feriixu Feriixu added the 🐛 bug Something isn't working label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant