bug:winget version is not Windows compatible
There is a version of tfswitch available via Winget, and that version doesn't work on Windows.
When running the binary it tries do download to `\usr\local\bin`
```
❯ tfswitch.exe
Reading required version from terraform file
Reading required version from constraint: >= 1.5.0
Matched version: 1.14.9
[Error] : Binary path does not exist: /usr/local/bin/terraform.exe
[Error] : Manually create bin directory at: \usr\local\bin and try again.
```
```
❯ tfswitch.exe -v
Version: 0.13.1308
❯ winget search tfswitch
Name Id Version Match Source
---------------------------------------------------------------------------
Terraform Switcher Warrensbox.Terraform… 0.13.1308 Moniker: tfswitch winget
```
0 条评论