Closed nathanchance closed 5 years ago
I was trying to run this for the buildroot upgrade PR earlier and never quite figured out how, this is a welcome change :hugs:. Trying it out right now, will submit review once done.
@nathanchance I can't figure out why my build fails, anything obvious I may have missed? https://del.dog/raw/qiqopafori
make[1]: Leaving directory '/home/msfjarvis/git-repos/continuous-integration/buildroot/src/output/build/host-gcc-initial-8.3.0/build' output/images/rootfs.cpio could not be found! Did the build error?
make[1]: Leaving directory '/home/msfjarvis/git-repos/continuous-integration/buildroot/src/output/build/host-gcc-initial-8.3.0/build' output/images/rootfs.cpio could not be found! Did the build error?
Yeah Nathan helped me find the problem over Telegram, for some reason my C++ compiler was there but configure refused to use it.
Thanks! @nickdesaulniers did you have any comments?
This will save bandwidth across image upgrades/rebuilds.
How's that? Seems like a compressed tarball would be smaller than all of git history?
This will save bandwidth across image upgrades/rebuilds.
How's that? Seems like a compressed tarball would be smaller than all of git history?
I guess I was comparing it to redownloading the tarball over and over in the current scheme. I suppose what I could do is just not remove the downloaded tarball source every rebuild and use the print-version
make target to check if we need to update the source. At the same time, shallow clone + new tags is a little bit easier yet should achieve the same thing.
I guess I was comparing it to redownloading the tarball over and over in the current scheme.
Ah, I see. In that case, I think it's simpler to wrap the fetch in a check if the file does not already exist, then fetch it. Might be nice to check the checksum of it either way if buildroot provided them.
if file_does_not_exist or checksum does not match:
rm -f file
curl file
Alright, I think I have addressed all comments :)
Thanks for the review all!
Commit messages should be fairly self explanatory, let me know if there are any questions/concerns!