Cloning master had connection issues
mzaiss opened this issue · 9 comments
I suggest adding --depth 1
in the clone line.
also pip module was not found for master installation.
i ran:
sudo apt install python3-pip
to resolve
I think your connection broke while cloning, so it was not completed. Maybe try to put your box closer to the WiFi router.
I think all other errors are because of the not succeeded cloning.
Probably,
but I got this error repeatedly.
And --depth 1 solves it.
On the device there is also no reason not to not run --depth 1, is it?
I agree depth 1 could be a good idea.
Maybe --single-branch
in addition to the current command is useful, because it doesn’t fetch all the other branches.
This looks like a good overview: https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/
From the article a „blobless clone“ (git clone --filter=blob:none <url>
) looks like a good compromise.
A „shallow clone“ (git clone --depth=1 <url>
) would also work for just building a Phoniebox, but when a user decides later to develop on that clone they would run into issues.
I compared the commands for used space after initial clone with checked out "develop":
Full: ~44MB
NoBlob: ~29MB
NoTree: ~27MB
Depth 1: ~26MB
IF we want to make a change here, i also would vote for the --filter=blob:none
option, as it has reduced size and the least side effects, with development usecases.
@mzaiss
Nevertheless would be interesting, why this causes trouble in your setup, if it is not network related.
@mzaiss did you check again? I still suspect a temporary issue like bad WiFi or a server, which is down. But if the issue still persists for you, we should investigate deeper.