Skip to content

Commit

Permalink
Release 1.8.2 - Add support for new distribution format in TF>=1.8.2 (#…
Browse files Browse the repository at this point in the history
…22)

* Release 1.8.2 - Add support for updated distribution format in TF > 1.8.2

* Fix changelog dates
  • Loading branch information
lisa-li-alida authored Apr 24, 2024
1 parent 95a409a commit eeb7659
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# CHANGELOG

## 1.8.1 (2025-04-17)
## 1.8.2 (2024-04-24)
BUG FIX:
* fix unzipping TF versions > 1.8.2 (breaking distribution change [details](https://github.com/hashicorp/terraform/blob/v1.8.2/CHANGELOG.md#182-april-24-2024))

## 1.8.1 (2024-04-17)
NEW FEATURES:
* add support for using latest Terraform 1.x minor version without an explicit implementation
* update init, planfile, and destroy commands (add Rev1_latest)

BUG FIX:
* fix downloading TF versions < 1.0 on `arm64` architectures

## 1.8.0 (2025-04-10)
## 1.8.0 (2024-04-10)
NEW FEATURES:
* add support for Terraform version `~> 1.8.0`
* update init, planfile, and destroy commands (add Rev1_08)
Expand Down
2 changes: 1 addition & 1 deletion lib/terradactyl/terraform/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Terradactyl
module Terraform
VERSION = '1.8.1'
VERSION = '1.8.2'
end
end
7 changes: 6 additions & 1 deletion lib/terradactyl/terraform/version_manager/binary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Binary
include Package

ERROR_CHECKSUM = 'FATAL: Calculated sum does not match published value!'
TERRAFORM_FILENAME = 'terraform'

attr_accessor :version

Expand Down Expand Up @@ -52,7 +53,11 @@ def installed?
private

def unzip(src, dst)
Zip::File.open(src) { |arch| arch.each { |f| f.extract(dst) } }
Zip::File.open(src) do |arch|
arch.each do |f|
f.extract(dst) if f.name.include?(TERRAFORM_FILENAME)
end
end
end

def fetch
Expand Down

0 comments on commit eeb7659

Please sign in to comment.