mirror of
https://github.com/patrickchugh/terravision.git
synced 2026-05-09 08:25:25 +02:00
[GH-ISSUE #49] Unable to clone module as git+ssh #24
Labels
No labels
bug
enhancement
enhancement
good first issue
good first issue
good first issue
pipeline
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/terravision#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @strowi on GitHub (Aug 21, 2023).
Original GitHub issue: https://github.com/patrickchugh/terravision/issues/49
Hi,
as mentioned here on reddit, i seem to be having a problem with private submodules:
While terraform init & co all work fine, terravision seems to be having an issue with this:
@jayor96 commented on GitHub (Aug 21, 2023):
if you replace all "github" with "gitlab" in file modules/gitlibs.py and then change module source definition from "git@gitlab...." to "git::ssh://git@gitlab......" in your terraform code, it should work. Also keep in mind that if you use modules from branch via ?ref=... it will not work and you should comment out ?ref part and change default branch in your repo to one which you want to pull. Those are just my findings so far.
@patrickchugh commented on GitHub (Aug 21, 2023):
Thanks for spotting this @strowi - will work on a fix soon.
@strowi commented on GitHub (Aug 24, 2023):
@jayor96 thx for the hints, but i guess i'll wait on a fix, since this seems to be a lot. Esp. if i want to do it in CI ;)
@patrickchugh commented on GitHub (Aug 26, 2023):
@strowi Can you do a git pull and try again with the latest fixed code?
@ashraf133 commented on GitHub (Aug 27, 2023):
hello ,
i have same problem even after pulling latest code,
the auto generated url is false
ERROR: Unable to call Git to clone repository! Check git and SSH fingerprints and keys are correct and ensure the URL git@gitlab.YYY.com/XXX.git is reachable via CLI.
terravision's wrong url : git@gitlab.YYY.com/XXX.git
expected correct url : git@gitlab.YYY.com:XXX.git
the difference is ":" after .com and not "/"
@patrickchugh commented on GitHub (Aug 27, 2023):
@ashraf133 well spotted let me fix that
@strowi commented on GitHub (Aug 28, 2023):
@patrickchugh : sorry for the delay, was aways for a few days. The cloning-problems seems to be fixed now. Thx!
Now it seems stuck at
Processing variables...for about 10m at 100%, but that might be because of the size.. I am basically trying to run this on https://github.com/aws-ia/terraform-aws-eks-blueprints . Will wait a bit longer if it finishes.. :)@patrickchugh commented on GitHub (Aug 28, 2023):
@strowi I made some changes to the code now to show more verbose debug messages you can paste the relevant lines from the output if necessary. Let me know if it works?
@ashraf133 commented on GitHub (Aug 28, 2023):
@patrickchugh , i have re pulled the last main branch but still have same problem with same cause
@strowi commented on GitHub (Aug 31, 2023):
@patrickchugh with commit
a301f5fb55i am getting not much more debug output...And that's it.
BTW is there support for multiple
--varfile? It is quite common to have an extra tfvars for encrypted secrets.@patrickchugh commented on GitHub (Oct 3, 2023):
I will be releasing a significant update that uses the Terraform binary - please test again with that once released.
@jayor96 commented on GitHub (Oct 9, 2023):
@patrickchugh when do you plan to release it please ?
@patrickchugh commented on GitHub (Nov 21, 2023):
@jayor96 @strowi @ashraf133 Hello, thank you for your feedback and thanks for testing out Terravision and helping to make this a better product. I have recently completed a major revamp to the code which uses the terraform binary to download source files and generate initial relationships, before augmenting it with source code parsing as before. This is a significant departure from the previous approach and whilst slower, ensures a more accurate output and will handle all terraform in built functions now when encountered in the source. Please do a git pull and re-test again with the latest source code. If your problem is resolved, please close the thread in github issues and mark it as completed. If not, please give as much detail as you can about the errors and include any source files if possible so I can reproduce your issue. Once again, thanks for helping and look forward to hearing from you soon.
P.
@patrickchugh commented on GitHub (Dec 28, 2023):
Closing since no feedback
@f0rkth1s commented on GitHub (May 31, 2024):
Can I bump this issue, we are seeing the same issue with the : missing when cloning repos from azure devops.