Closed manszigher closed 1 year ago
Hi @manszigher - I just merged PR #79 that should address this. Please try this out and let me know.
Thanks!
Hi thanks,
I will try it out but would that again just end up with taking the latest from main? I think it would make more sense to pick a sha. I can see when I am building that cargo is actually trying to get a specific sha from the project so not really sure why the recipe is not just specifying the sha we need from the start.
Please check out the 1.1.11 recipe changes. (PR #82). I was able to successfully build with these changes.
Describe the bug When trying to build an offline build and making use of BB_NO_NETWORK the iot-edge recipes will fail. We have a local source mirror so it should fetch any of the SRC_URI from there but it dose not my guess is that the reason is that both the daemon and cli recipe depends on some other repos
and that AUTOREV is used.
resulting in that it will always try and fetch it from an external source. We get the following error
We can see in the DL_DIR that the packages that are causing the problems are always fetched instead of just setup as a link pointing to the SOURCE_MIRROR location
To Reproduce Steps to reproduce the behavior:
Expected behavior I would have expected that the fetch task would use the SOURCE_MIRROR and would have found the necessary sources in there.
Logs If applicable, add logs to help explain your problem.
Build System (please complete the following information):
Target System (please complete the following information):
Additional context I suspect it has something todo with the usage of AUTOREV but I am not sure. But I do think it is bad practice to use AUTOREV unless you absolutely must. I don't think AUTOREV is needed in this case since we have a versioned recipe. Specifying a sha would be a better solution in my opinion. I have tried setting the SRCREV to a sha and based on my tests I think it works. I can push a change for this but I would like to know if I have missed something.