shorebirdtech / shorebird

Code Push for Flutter and other tools for Flutter businesses.
https://shorebird.dev
Other
2.21k stars 132 forks source link

fix: work-around `unexpected disconnect while reading sideband packet` from GitHub? #2397

Open eseidel opened 1 month ago

eseidel commented 1 month ago

git clone sometimes fails with:

error: 2556 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output 

Unclear why. https://stackoverflow.com/questions/66366582/github-unexpected-disconnect-while-reading-sideband-packet

But since this seems to be transient, we could try wrapping our git clone calls in something that knew how to catch this error and try again?

eseidel commented 1 month ago

Another answer: https://github.com/leoafarias/fvm/discussions/687#discussioncomment-10345887