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

Failed to initialize environment for pre-commit-golang #3760

Closed
karthik-us opened this issue Apr 19, 2023 · 0 comments · Fixed by #3761
Closed

Failed to initialize environment for pre-commit-golang #3760

karthik-us opened this issue Apr 19, 2023 · 0 comments · Fixed by #3761

Comments

@karthik-us
Copy link
Collaborator

While trying to commit changes onto the repo the pre-commit golang format check fails to initialize the environment for git://github.com/dnephin/pre-commit-golang with the below error:

[karthik@fedora ceph-csi]$ git commit -s
[INFO] Initializing environment for git://github.com/dnephin/pre-commit-golang.
An unexpected error has occurred: CalledProcessError: command: ('/usr/libexec/git-core/git', 'fetch', 'origin', '--tags')
return code: 128
stdout: (none)
stderr:
fatal: unable to connect to github.com:
github.com[0: 20.207.73.82]: errno=Connection timed out

karthik-us added a commit to karthik-us/ceph-csi that referenced this issue Apr 19, 2023
Initialization of pre-commit-golang environment is failing when
using the git://github.com/dnephin/pre-commit-golang repo link.
Changing it to https://github.com/dnephin/pre-commit-golang
fixed the issue.

Signed-off-by: karthik-us <ksubrahm@redhat.com>
Fixes: ceph#3760
nixpanic pushed a commit to karthik-us/ceph-csi that referenced this issue Apr 20, 2023
Initialization of pre-commit-golang environment is failing when
using the git://github.com/dnephin/pre-commit-golang repo link.
Changing it to https://github.com/dnephin/pre-commit-golang
fixed the issue.

Signed-off-by: karthik-us <ksubrahm@redhat.com>
Fixes: ceph#3760
@mergify mergify bot closed this as completed in #3761 Apr 20, 2023
mergify bot pushed a commit that referenced this issue Apr 20, 2023
Initialization of pre-commit-golang environment is failing when
using the git://github.com/dnephin/pre-commit-golang repo link.
Changing it to https://github.com/dnephin/pre-commit-golang
fixed the issue.

Signed-off-by: karthik-us <ksubrahm@redhat.com>
Fixes: #3760
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

Successfully merging a pull request may close this issue.

1 participant