-
Notifications
You must be signed in to change notification settings - Fork 80
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
InvalidGitRepositoryError #29
Comments
@jannyg Yeah I think there is a basic check to see if |
Seeing the same sort of error about InvalidGitRepositoryError (weirdly this was working on my laptop, so maybe the versions changed?)
|
I had to do the same with removing the temp folder as mentioned. Took me a bit to figure out how to run tempfile.gettempdir() to figure out where it was, but works after deleting that folder.
Tangentially related, now that it works, the TF file that is created ends up including the message about the existing repo being found
|
I think what we need to do here is two things.
Part of the reason I never worked on this is that it doesn't seem to happen all that often and I had wanted to replace the Terraform source code download with a new process that just looks up the correct file from their repo and get the raw version of it. This kind of on-the-fly retriever would be much better for most users who only want to convert a single small to medium size template. While the download source code method would be much better for those users who want to convert multiple templates or really large templates. |
Tried the latest release with the fix for #19, but now I get this error message:
The cloned repo to
/tmp/terraform_src
seems to not have a Git config and runninggit init
in that folder resulted in the following error:A removal of the
/tmp/terraform_src
resulting in a fresh clone fixed the issue. Maybe there could be a check for this folder and clone it again if it fails the checks?The text was updated successfully, but these errors were encountered: