Closed HerrMuellerluedenscheid closed 2 years ago
Sounds like a good idea - can you provide a few bad test cases data samples? then I'll take it from there
Sounds like a good idea - can you provide a few bad test cases data samples? then I'll take it from there
Yes. This hit hard on me a couple of times also from peer-reviewed recipes ;) I'll have a look into our project history to see if I can find the previous cases.
@HerrMuellerluedenscheid please have a look if that solves your issues. I checked it against poky master and meta-openembedded master with good results
I was using meta-raspberrypi at
77190af02d48adc2b28216775e6318e9eeda571c
which has the followingSRC_URI
inrecipes-kernel/linux-firmware-rpidistro/linux-firmware-rpidistro_git.bb
:Issue:
protocol=https
was missing and was fixed in a subsequent commit. Apparently, the wrong URL is correctly translated (probably on the destination host) to https://github.com/RPi-Distro/firmware-nonfree. In more secured networks (such as the one in our institute) however, the bitbake build fails at this recipe because the request times out. I assume, there is an iptables rule which blocks the malformatted URL.Solution would be a linting rule the uses regex to identify if the URL either starts with
http[s]://
orgit@
orgit://
+ hasprotocol=http[s]
defined.