<div dir="ltr">
<p class="">Hi,</p><p class="">When writing a recipe the SRC_URI is supposed to accept git repository addresses but the following fails to build for me:</p>
<p class="">1. With http URL: It also does not allow my credentials to be embedded in the URI</p>
<p class=""><span class="">SRC_URI = "<a href="http://s624aalp0001.usfdc.corpintra.net/UI-SW/hupf2020-frontend.git;protocol=http;branch=master"><span class="">http://mygitserver.net/myproject.git;protocol=http;branch=master</span></a>"</span></p>
<p class="">Exception: ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: SRCREV was used yet no valid SCM was found in SRC_URI</p>
<p class="">ERROR: Failed to parse recipe: <a href="http://mycoolrecipe.bb">mycoolrecipe.bb</a></p>
<p class=""><br></p>
<p class="">2. With ssh URL</p>
<p class="">SRC_URI = "<a href="mailto:git@s624aalp0001.usfdc.corpintra.net"><span class="">git@mygitserver.net</span></a>:me/myproject.git;protocol=ssh;branch=master"</p>
<p class="">Exception: ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception MalformedUrl: The URL:Â "<a href="mailto:git@s624aalp0001.usfdc.corpintra.net"><span class="">git@mygitserver.net</span></a>:me/myproject.git;protocol=ssh;branch=master"Â is invalid and cannot be interpreted</p>
<p class=""><br></p>
<p class=""><br></p>
<p class="">After checking the documentation it seems it only expects the git protocol only and it worked in this example, however, our internal enterprise github only supports http and ssh URIs.</p>
<p class=""><br></p>
<p class="">SRC_URI = "git://<a href="http://github.com/GraphicsEmpire/gridvisualization.git;branch=master">github.com/GraphicsEmpire/gridvisualization.git;branch=master</a>â€</p>
<p class=""><br></p>
<p class="">What do you guys suggest?</p></div>