Har*_*san 3 git bitbake yocto ubuntu-16.04
配置后使用 bitbake 时,bitbake 在尝试使用 SSH 链接克隆/访问私有存储库之前失败。
$ bitbake linux-imx
git -c core.fsyncobjectfiles=0 ls-remote ssh://git@gitlab.com:~/some-project/some-repo.git
| DEBUG: Python function base_do_fetch finished
| DEBUG: Python function do_fetch finished
| ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 128, output:
| ssh: Could not resolve hostname gitlab.com:~: Name or service not known
| fatal: Could not read from remote repository.
|
| Please make sure you have the correct access rights
| and the repository exists.
|
ERROR: Task 4 (/home/user/Projects/some_project/some-project-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.1.15.bb, do_fetch) failed with exit code '1'
Run Code Online (Sandbox Code Playgroud)
当我尝试从 URL 中删除 时,~/我收到类似的错误。
| DEBUG: Python function base_do_fetch finished
| DEBUG: Python function do_fetch finished
| ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 128, output:
| ssh: Could not resolve hostname gitlab.com:some-project: Name or service not known
| fatal: Could not read from remote repository.
Run Code Online (Sandbox Code Playgroud)
我什至尝试将 URL 修改为 https: ,这又给了我另一个错误
git -c core.fsyncobjectfiles=0 ls-remote http://gitlab.com/some-project/some-repo.git
| DEBUG: Python function base_do_fetch finished
| DEBUG: Python function do_fetch finished
| ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 128, output:
| fatal: could not read Username for 'https://gitlab.com': No such device or address
|
ERROR: Task 4 (/home/user/Projects/some-project/some-project-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.1.15.bb, do_fetch) failed with exit code '1'
Run Code Online (Sandbox Code Playgroud)
当我在终端中尝试相同的操作而不是 bitbake 时,它成功并获得了所需的输出
git -c core.fsyncobjectfiles=0 ls-remote git@gitlab.com:some-project/some-repo.git
Run Code Online (Sandbox Code Playgroud)
我正在使用 Ubuntu 16.04 。我知道 Yocto 构建尚未在 Ubuntu 16.04 中进行测试。
WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Run Code Online (Sandbox Code Playgroud)
但之前使用公共存储库的构建成功了。那么有没有办法让这项工作发挥作用呢?
尝试使用:
\n\ngit://git@gitlab.com/some-project/some-repo.git;protocol=\xe2\x80\x8c\xe2\x80\x8bssh;branch=${SRCBRAN\xe2\x80\x8c\xe2\x80\x8bCH}\nRun Code Online (Sandbox Code Playgroud)\n\n在您的 SRC_URI 中。
\n\n请注意删除:~.
| 归档时间: |
|
| 查看次数: |
7456 次 |
| 最近记录: |