Commit graph

8 commits

Author SHA1 Message Date
Brian Flad
22013f72bd
Automatically fallback to darwin/amd64 for Terraform versions before 1.0.2 (#409)
Reference: https://github.blog/changelog/2024-04-01-macos-14-sonoma-is-generally-available-and-the-latest-macos-runner-image/

GitHub hosted runners for `macos-latest` are automatically being upgraded to macOS 14 and arm64 architecture machines. Any workflows that are using the upgraded runner can return an error such as:

```
Error: Terraform version 0.12.* not available for darwin and arm64
```

This adds special case logic to automatically fallback to darwin/amd64 when darwin/arm64 is detected and the version is below 1.0.2, which is the first version that had darwin/arm64 release assets. macOS should emulate and run the amd64 binaries until Apple or GitHub removes the emulation support.
2024-04-23 10:01:38 -04:00
Austin Valle
5aa9444145
[COMPLIANCE] Add copyright and license headers (#327)
* add copywrite changes

* extra slash

* [COMPLIANCE] Add copyright and license headers

* removed incorrect license

* reverted /dist

* add action.yml to copywrite ignore

* revert

* remove dist changes

* revert dist
2023-06-05 11:20:41 -04:00
Jonathan Camara
8aaee7fab8
Fix terraform extract (#187)
On Windows runners, extracting the downloaded CLI zip file was failing because the file didn't have a .zip extension. This commit attempts to solve the problem by adding the extension to the downloaded file before extraction.
2022-05-09 13:19:28 -04:00
Audrey Eschright
5d2ec201a9
Document pre-release behavior (#73)
* Add user agent reporting to terraform download
* Upgrade js-releases dependency
2020-12-08 11:26:01 -08:00
Audrey Eschright
32c4f59108
Switch to @hashicorp/js-releases for finding correct package to install (#70) 2020-12-01 10:49:15 -08:00
Jarek Potiuk
af8505ef0a
Allow to specify range specification instead of fixed version (#38)
That allows to install for example the latest bug-fix version of
terraform 1.12.* even if 1.13 is already installed.

Co-authored-by: Matthew Sanabria <24284972+sudomateo@users.noreply.github.com>
2020-09-08 10:18:09 -04:00
Alex Jurkiewicz
70ec49405b
Ignore pre-release versions for 'latest' (#19)
* Ignore pre-release versions for 'latest'

Fixes #16

* Note the real version when using 'latest'
2020-06-18 20:02:28 -04:00
Matthew Sanabria
cd5e05ffbf Initial commit 2020-04-25 19:46:30 -04:00