使用openEuler embedded 24.03-LTS中下面的docker镜像里面的bitbake命令构建image时,如果使用git(git version 2.46.0) clone需要输入用户名和密码的远程仓库时, 总是失败, 报下面错误:
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password.
经过分析发现, docker镜像中内置了2个不同版本的git命令, 使用2.46版本的git总是出现该问题, 如果不使用/opt/buildtools/nativesdk/sysroots/x86_64-openeulersdk-linux/usr/bin/git(2.46)命令时, 转而使用/usr/bin/git(2.43)输入用户名和密码拉取远程仓库正常.
社区是不是考虑下重新构建下该docker镜像, 修复下git命令使用问题.
docker信息如下:
yocto-meta-openeuler中openEuler-24.03-LTS分支中env.yaml配置信息:
docker_tag: “latest”
docker_image: “swr.cn-north-4.myhuaweicloud.com/openeuler-embedded/openeuler-container:latest”
sdk_docker_image: “swr.cn-north-4.myhuaweicloud.com/openeuler-embedded/openeuler-sdk:latest”