gojp / goreportcard

A report card for your Go application
https://goreportcard.com
Apache License 2.0
1.99k stars 252 forks source link

Could not analyze the repository: could not clone repo: exit status 128 #352

Closed Halfi closed 2 years ago

Halfi commented 3 years ago

After renaming master branch to the main I always get error on refresh now button: There was an error processing your request: Could not analyze the repository: could not clone repo: exit status 128 https://goreportcard.com/report/github.com/Halfi/postmanq

ahmedalhulaibi commented 3 years ago

I am also seeing this error.

I did some local debugging and isolated the issue to this block of code:

https://github.com/gojp/goreportcard/blob/90f40babc458157667588faa664896dc544beccd/download/download.go#L83-L92

Looks like the repo is failing to sync.

Logs:

badger 2021/08/15 17:03:11 INFO: All 0 tables opened in 0s
2021/08/15 17:03:11 Running on :8000 ...
2021/08/15 17:04:12 Checking repo "github.com/ahmedalhulaibi/cronalt"...
2021/08/15 17:04:12 Create https://github.com/ahmedalhulaibi/cronalt
cd .
git clone --depth 1 https://gojp:gojp@github.com/ahmedalhulaibi/cronalt _repos/src/github.com/ahmedalhulaibi/cronalt
cd _repos/src/github.com/ahmedalhulaibi/cronalt
git checkout 
# cd _repos/src/github.com/ahmedalhulaibi/cronalt; git checkout 
fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
2021/08/15 17:04:13 Failed to update "https://github.com/ahmedalhulaibi/cronalt" (exit status 128), trying again...
2021/08/15 17:04:13 Create https://github.com/ahmedalhulaibi/cronalt
cd .
git clone --depth 1 https://gojp:gojp@github.com/ahmedalhulaibi/cronalt _repos/src/github.com/ahmedalhulaibi/cronalt
cd _repos/src/github.com/ahmedalhulaibi/cronalt
git checkout 
# cd _repos/src/github.com/ahmedalhulaibi/cronalt; git checkout 
fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
2021/08/15 17:04:13 ERROR: from newChecksResp: could not clone repo: exit status 128
2021/08/15 17:04:13 Served /checks in 913.489094ms
2021/08/15 17:05:11 Checking repo "github.com/ahmedalhulaibi/cronalt"...
2021/08/15 17:05:11 Update https://github.com/ahmedalhulaibi/cronalt
cd _repos/src/github.com/ahmedalhulaibi/cronalt
git pull --ff-only
cd _repos/src/github.com/ahmedalhulaibi/cronalt
git checkout 
# cd _repos/src/github.com/ahmedalhulaibi/cronalt; git checkout 
fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
2021/08/15 17:05:11 Failed to update "https://github.com/ahmedalhulaibi/cronalt" (exit status 128), trying again...
2021/08/15 17:05:11 Create https://github.com/ahmedalhulaibi/cronalt
cd .
git clone --depth 1 https://gojp:gojp@github.com/ahmedalhulaibi/cronalt _repos/src/github.com/ahmedalhulaibi/cronalt
cd _repos/src/github.com/ahmedalhulaibi/cronalt
git checkout 
# cd _repos/src/github.com/ahmedalhulaibi/cronalt; git checkout 
fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
2021/08/15 17:05:11 ERROR: from newChecksResp: could not clone repo: exit status 128
2021/08/15 17:05:11 Served /checks in 679.31938ms
2021/08/15 17:16:17 ERROR: from download.Clean: unrecognized import path "master"
2021/08/15 17:16:17 Served /checks in 89.18µs
2021/08/15 17:16:30 ERROR: from download.Clean: unrecognized import path "v1.0.0"
2021/08/15 17:16:30 Served /checks in 137.328381ms
2021/08/15 17:16:38 Checking repo "github.com/ahmedalhulaibi/cronalt"...
2021/08/15 17:16:38 Update https://github.com/ahmedalhulaibi/cronalt
cd _repos/src/github.com/ahmedalhulaibi/cronalt
git pull --ff-only
cd _repos/src/github.com/ahmedalhulaibi/cronalt
git checkout 
# cd _repos/src/github.com/ahmedalhulaibi/cronalt; git checkout 
fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
2021/08/15 17:16:38 Failed to update "https://github.com/ahmedalhulaibi/cronalt" (exit status 128), trying again...
2021/08/15 17:16:38 Create https://github.com/ahmedalhulaibi/cronalt
cd .
git clone --depth 1 https://gojp:gojp@github.com/ahmedalhulaibi/cronalt _repos/src/github.com/ahmedalhulaibi/cronalt
cd _repos/src/github.com/ahmedalhulaibi/cronalt
git checkout 
# cd _repos/src/github.com/ahmedalhulaibi/cronalt; git checkout 
fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
2021/08/15 17:16:38 ERROR: from newChecksResp: could not clone repo: exit status 128
2021/08/15 17:16:38 Served /checks in 643.223091ms
ThomasObenaus commented 2 years ago

Same issue happens here https://goreportcard.com/report/github.com/ThomasObenaus/go-conf#golint

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 60 days with no activity.