我試圖在我的 Yocto 配方中指定 SRC_URI,但必要的冒號是非法的。從外殼:
git clone [email protected]:mycompany/myrepo.git # WORKS
git clone [email protected]/mycompany/myrepo.git # DOES NOT WORK
但是 Yocto 配方語法不接受 ':' 并要求我用 '/' 替換它,并且與 shell 命令一樣,它會失敗。
在我的食譜中——
SRC_URI?= "git://[email protected]:mycompany/myrepo.git;protocol=git;branch=mybranch"
導致構建立即失敗,并出現 python 錯誤,影響 -
poky/meta/classes/base.bbclass
uri = bb.fetch.URI(uri_string)
self.port = urlp.port
port = int(port, 10)
Port could not be cast to integer value as 'mycompany'
一個這個(用/代替:) -
SRC_URI?= "git://[email protected]/mycompany/myrepo.git;protocol=git;branch=mybranch"
失敗 -
ERROR: linux-socfpga-lts-5.4.124-lts gitAUTOINC d4d238db6e-r0 do_fetch: Fetcher failure for URL:
'git://[email protected]/mycompany/myrepo.git;protocol=git;branch=mybranch'. Unable to fetch URL from any source.
我還嘗試了沒有“git@”部分的 SRC_URI 定義,也嘗試了協議 = http。沒有任何組合奏效。如何解決 Bitbucket repo 和 Bitbake 之間不兼容的 URL 語法?
uj5u.com熱心網友回復:
ElpieKay 有相應的鏈接來解釋選項的答案。這對我有用:
SRC_URI = "git://[email protected]/mycompany/myrepo.git;protocol=ssh;branch=mtbranch;"
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/443121.html
上一篇:GridFS二進制到URL
下一篇:如何在URL中提取主題標簽?
