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

Cmd('git') failed due to: exit code(128) #299

Open
UcGeorge opened this issue May 9, 2024 · 1 comment
Open

Cmd('git') failed due to: exit code(128) #299

UcGeorge opened this issue May 9, 2024 · 1 comment

Comments

@UcGeorge
Copy link

UcGeorge commented May 9, 2024

root@43157a173e4a:/workspaces/AWS_RAG_Chatbot# cf2tf formation.yml >> main.auto.tf

// Converting formation.yml to Terraform!
Traceback (most recent call last):
  File "/usr/local/bin/cf2tf", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/cf2tf/app.py", line 41, in cli
    search_manger = code.search_manager()
                    ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/cf2tf/terraform/code.py", line 51, in search_manager
    repo = get_code()
           ^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/cf2tf/terraform/code.py", line 79, in get_code
    repo = Repo.clone_from(
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/git/repo/base.py", line 1525, in clone_from
    return cls._clone(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/git/repo/base.py", line 1383, in _clone
    handle_process_output(
  File "/usr/local/lib/python3.11/site-packages/git/cmd.py", line 221, in handle_process_output
    finalizer(process)
  File "/usr/local/lib/python3.11/site-packages/git/util.py", line 504, in finalize_process
    proc.wait(**kwargs)
  File "/usr/local/lib/python3.11/site-packages/git/cmd.py", line 834, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git clone -v --depth=1 --progress -- https://github.com/hashicorp/terraform-provider-aws.git /tmp/terraform_src
@sciencey-sanjay
Copy link

I am getting similar error. Does anybody found a workaround?

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

No branches or pull requests

2 participants