- #golang: go fetches dependencies in compile phase
Re: #golang: go fetches dependencies in compile phase
toggle quoted messageShow quoted text
I'd suggest you place that tarball into some artefact storage, and have it listed in SRC_URI. Then the standard Yocto mechanism for fetching, checksumming, caching and unpacking tarballs kicks in, so you only need to make sure the tree is set up correctly after unpacking, maybe with some simple post-processing.
If the "local download cache path" is well-known (this is not by any chance $DL_DIR?), then we could create a tar from the vendor directory (which is created when you call "go mod vendor" and contains all the downloaded dependencies) and put this tar file into the download cache.
Before actually calling "go mod vendor", we would first check, if there is a tar file for the vendor directory in the download cache and if so simply unpack the tar.
Does this make sense, or am I too naive and this is just nonsense?
Join firstname.lastname@example.org to automatically receive all group messages.