warrensbox / terraform-switcher

A command line tool to switch between different versions of terraform (install with homebrew and more)
https://tfswitch.warrensbox.com
MIT License
1.35k stars 135 forks source link

terraform file extraction does not work under windows #449

Closed MatrixCrawler closed 3 months ago

MatrixCrawler commented 3 months ago

With #433 we introduced an error that is prevent the extraction of the terraform binary on windows systems

image

This is due to this code part https://github.com/warrensbox/terraform-switcher/blob/master/lib/files.go#L70 that is not taking into account that on windows we have binaries with the .exe extension