spacelift-io / terraform-provider-spacelift

Terraform provider to interact with Spacelift
MIT License
76 stars 29 forks source link

Install Terraform before running tests #324

Closed adamconnelly closed 2 years ago

adamconnelly commented 2 years ago

Description of the change

We're seeing occasional test failures caused by the terraform binary being modified while we're trying to execute it as part of the acceptance tests (see this related issue: https://github.com/hashicorp/terraform-plugin-sdk/issues/629).

The suggested solution in the Terraform plugin developer docs is to install a version of Terraform before running go test, which should stop the tests from trying to download Terraform themselves.

Type of change

Checklists

Development

Code review