boltops-tools / terraspace

Terraspace: The Terraform Framework
https://terraspace.cloud
Apache License 2.0
674 stars 46 forks source link

Problem with check terraform version #328

Closed ByJacob closed 1 year ago

ByJacob commented 1 year ago

Checklist

My Environment

Software Version
Operating System linux
Terraform 1.3.6
Terraspace 2.2.13
Ruby ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-linux]

Expected Behaviour

terraspace command should work

Current Behavior

terraspace version: 2.2.13
terraform bin: /sbin/terraform
terraform version: 1.3.6
ERROR: Terraspace requires Terraform between v0.12.x and 1.5.5
This is because newer versions of Terraform has a BSL license
If your usage is allowed by the license, you can bypass this check with:

    export TS_VERSION_CHECK=0

Note: If you're using Terraspace Cloud, you won't be able to bypass this check.
See: https://terraspace.cloud/docs/terraform/license/

Step-by-step reproduction instructions

  1. terraspace new project infra --plugin none --examples
  2. cd infra
  3. Remove empty gem from Gemfile
  4. terraspace init demo

Code Sample

Solution Suggestion

Check verifying the maximum and minimum version of terraforma

tongueroo commented 1 year ago

Thanks for the report. Fixed in #329