I'm trying to build an Image using Yocto Project. I need to build it for the future entirely offline. I generated the tarballs once online and moved them to my local mirror source directory. Then, I deleted all my build directory but the conf directory, added BB_NO_NETWORK = "1" and disabled the resolution names from my machine. So far so good, bitbake is fetching all from my local mirror and building the recipes.
My problem is that I have a recipe that tries to get a file in do_compile time. I get an error because the name couldn't be resolved. The recipe is the telegraf one, the error is:
ERROR: telegraf-1.14.5-r0 do_compile: Execution of '...../telegraf/1.14.5-r0/temp/run.do_compile.787' failed with exit code 1:
go: cloud.google.com/go@v0.53.0: Get "https://proxy.golang.org/cloud.google.com/go/@v/v0.53.0.mod": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:36724->[::1]:53: read: connection refused
When I generate the image when my machine is online, the error doesn't happen and I can find that .mod file inside a cache directory, so I could store that file in my mirror directory and set in the recipe the location of it, instead of that URL, but I don't know how to do this. It appears that mirror only works in do_fetch.
I tried to search in my source files for that URL, but I couldn't find it.
Can anyone help me?
I just searched and found a new version of the telegraf recipe. I changed to it and the problem was solved.