-
Notifications
You must be signed in to change notification settings - Fork 239
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
Using git always gives error 128 #114
Comments
Same here, using it like this:
Results in: /usr/bin/git exited with 128: fatal: not a git repository (or any of the parent directories): .git |
I'm not able to reproduce this. I ran your exact command. Exit code 128 usually means Do you have any more info to share? Can't repro for now. |
Hi @mitchellh, I'm testing go-getter and faced the same issue. From what I could find, that error is returned from the Git client because the destination directory is not a (local) Git repository.
I'm running this on OSX Mojave with Git v2.17.2 I hope this helps. Best, |
This seems to be because the code tries to update the local git repo if the destination directory exists. If you pass a non-existent directory to Get() then it should work. See here: Line 113 in 9363991
|
Just to recap, since I ran into this myself: It feels like either the behavior should be patched or a better error message should be returned here. |
Huge lifesaver. I couldn't figure out why it was error out and giving the 128 error. I deleted the |
I don't know what specifically has changed but in running my own tests, it seems that now on osx, it will fail silently. No error is reported and the destination directory is left empty. git version 2.29.2 |
I have run into the same error but from inside my own code, which pretty much does the same as mentioned before. dst, err := ioutil.TempDir("", "jobdir")
if err != nil {
return nil, err
}
defer os.Remove(dst)
client = &gg.Client{
Mode: gg.ClientModeDir,
Src: jpath,
Pwd: pwd,
Dst: dst,
}
err = client.Get()
if err != nil {
return nil, err
} In my case when using
But when using |
just change https to git |
I am unable to clone the private repo inside the pod. Warning CannotConnectToProvider 3m33s (x21 over 75m) managed/workspace.tf.crossplane.io (combined from similar events): cannot get remote Terraform module: error downloading 'https://github.devtools.predix.io/industrial-cloud-pcs/cp-aws.git?ref=main': /usr/bin/git exited with 128: Cloning into '/tmp/getter992332245/temp'... Any idea on how to do that ? |
If you are reading this, I was trying to clone into an existing directory and it was failing, cloning into a new directory resolved it (thanks to #114 (comment)) |
Just stumbled on this while investigating an issue and it looks like this was fixed as a side-effect of #497, released in v1.7.5.
|
Thanks for noticing this @arththebird, on git update Please feel free to ping me in case you notice something going wrong following this change. |
Since #497 seems to have fixed the issue, I'll go ahead and close this. |
All of these give the same error:
This also occurs on nomad. What is the problem? I'm using the latest version.
The text was updated successfully, but these errors were encountered: