Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Race condition when executing terraform binary #17

Closed
dansimau opened this issue Dec 27, 2018 · 0 comments · Fixed by #13
Closed

Race condition when executing terraform binary #17

dansimau opened this issue Dec 27, 2018 · 0 comments · Fixed by #13

Comments

@dansimau
Copy link
Contributor

When Terraform is not installed, it is automatically downloaded.

Sometimes in the tests we are seeing:

	Error:      	Should be empty, but was failed to load YAML from file: astro.yaml; unable to detect Terraform version: fork/exec /home/travis/.tvm/linux/amd64/0.8.8/terraform: text file busy

This probably happens when two threads try to download Terraform at the same time and one tries to execute it while the other one is writing to it.

See extensive discussions on this:
golang/go#22220
golang/go#3001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant