Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix terraspace check #329

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/terraspace/check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def error_message(cloud: false)
See: https://terraspace.cloud/docs/terraform/license/
EOL

puts "ERROR: #{name} requires Terraform between v#{@min_terraform_version}.x and #{@max_terraform_version}".color(:red)
puts "ERROR: #{name} requires Terraform between #{@min_terraform_version}.x and #{@max_terraform_version}".color(:red)
puts <<~EOL
This is because newer versions of Terraform has a BSL license
This is because newer versions of Terraform have a BSL license
If your usage is allowed by the license, you can bypass this check with:

export TS_VERSION_CHECK=0
Expand All @@ -62,6 +62,7 @@ def allowed_terraform_version?
min_ok = major > min_major ||
(major == min_major && minor >= min_minor)
max_ok = major < max_major ||
(major == max_major && minor < max_minor) ||
(major == max_major && minor == max_minor && patch <= max_patch)

min_ok && max_ok
Expand Down