warrensbox/terraform-switcher

warrensbox/terraform-switcher crit platform linux/arm64 is not supported.

Closed this issue · 3 comments

Is your feature request related to a problem? Please describe.
I try to install terraform-switcher in Docker xbuild to generate a arm64 & amd64 image. In the linux/arm64 build I ge this error.

Describe the solution you'd like
Not sure what's the issue in the script. Did you miss to whitelist the artefact?
#198

** Installation process
curl -L https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh | bash

#52 5.954 install warrensbox/terraform-switcher
#52 5.959 % Total % Received % Xferd Average Speed Time Time Time Current
#52 5.959 Dload Upload Total Spent Left Speed
100 9187 100 9187 0 0 30220 0 --:--:-- --:--:-- --:--:-- 30220
#52 6.292 warrensbox/terraform-switcher info checking GitHub for latest tag
#52 6.682 warrensbox/terraform-switcher info found version: 0.12.1168 for 0.12.1168/linux/arm64
#52 8.009 warrensbox/terraform-switcher info installed /usr/local/bin/tfswitch

kral2 commented

I can confirm that just downloading the source from latest release and extracting the archive is enough to have it working on a linux/arm64 operating system.

Successfully tested on Oracle Linux 8.4 running on arm64.

It seems we just need to add arm64 as a valid platform on the install script checks, which is exactly what PR #198 does 👍

Fixed #206 and #198