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

atlantis testdrive fails to install terraform on windows host if /tmp directory is not present. its expecting paths to be linux like on windows #4508

Open
Mohkam opened this issue May 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Mohkam
Copy link

Mohkam commented May 5, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

if you create /tmp manually, it fails again on copying binary.
=> forking repo
=> fork completed!
=> terraform not found in $PATH.
=> downloading terraform
⠧=> downloaded terraform successfully!
Error: moving terraform binary into /usr/local/bin: exec: "mv": executable file not found in %PATH%:

Overview of the Issue

atlantis testdrive fails to install terraform on the windows host if /tmp directory is not present.

Reproduction Steps

run atlantis testdrive on any Winddows host where Terraform is not installed already.
in terraform install section all the paths are hardcoded for Linux.
first it would complain for /tmp missing when downloading. if you create this directory manual then it will complain for /usr/local/bin missing as it tries to move the binary to this location.

Environment details

  • Atlantis version: atlantis 0.27.3 (commit: 565fd9d) (build date: 2024-04-25T16:44:15Z)
    run on any windows version where no Linux-like directory structure is created.
    image
@Mohkam Mohkam added the bug Something isn't working label May 5, 2024
@Mohkam Mohkam changed the title atlantis testdrive fails to install terraform on windows host if /tmp directory is not present. atlantis testdrive fails to install terraform on windows host if /tmp directory is not present. its expecting paths to be linux like on windows May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant