runatlantis / atlantis

Terraform Pull Request Automation
https://www.runatlantis.io
Other
7.74k stars 1.05k forks source link

Error while using tfenv #393

Closed JoostSaanen closed 5 years ago

JoostSaanen commented 5 years ago

When I add atlantis plan as comment in my testproject I've got the following error:

xit status 1: running "sh -c terraform init -input=false -no-color" in "/var/folders/tn/vgwqk7c13kg1bkq_s2s6mmvh0000gn/T/448926885/repos/JoostSaanen/atlantis-example/1/default"
cat: /usr/local/Cellar/tfenv/0.6.0/version: No such file or directory
tfenv: tfenv-version-name: �[0;31m[ERROR] Version could not be resolved (set by /usr/local/Cellar/tfenv/0.6.0/version or tfenv use <version>)�[0;39m
/usr/local/Cellar/tfenv/0.6.0/libexec/tfenv-exec: line 22: /usr/local/Cellar/tfenv/0.6.0/versions//terraform: No such file or directory

It seems it has something to do with tfenv. Is there a way to get Atlantis working with tfenv?

lkysow commented 5 years ago

Hi Joost, I couldn't reproduce this myself. Did you find a way around it?

If not, I would recommend using the terraform version support built-in to Atlantis: https://www.runatlantis.io/docs/requirements.html#terraform-versions

lkysow commented 5 years ago

Closing due to lack of activity.