gpt4 book ai didi

git - Travis 错误存储库无法从远程存储库中读取

转载 作者:行者123 更新时间:2023-12-03 22:13:26 26 4
gpt4 key购买 nike

我的文件夹结构如下
rserver-docker 包含 rserver 的 gitsubmodule

git submodule(rserver-docker) 如下:

[submodule "rserver"]   
path = rserver
url = git@github.com:VInc/rserver.git

特 pull 维斯看起来如下
before_install:
- echo $CI_USER_TOKEN
- echo -e "\n\nmachine github.com\n login $CI_USER_TOKEN\n" >>~/.netrc
- git submodule update --init --recursive

CI_USER_TOKEN 是 Travis-settings 中更新的个人访问 token

我收到如下错误
 $ git clone --depth=50 --branch=dev git@github.com:VInc/rserver-docker.git VInc/rserver-docker
Cloning into 'VInc/rserver-docker'...
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
$ cd VInc/rserver-docker
$ git checkout -qf d445f5afe71a6f3390345842644e600ee4bbb68b
7.47s$ git submodule update --init --recursive
Submodule 'rserver' (git@github.com:VInc/rserver.git) registered for path 'rserver'
Cloning into '/home/travis/build/VInc/rserver-docker/rserver'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:VInc/rserver.git' into submodule path '/home/travis/build/VInc/rserver-docker/rserver' failed
Failed to clone 'rserver'. Retry scheduled
Cloning into '/home/travis/build/VInc/rserver-docker/rserver'...
ERROR: Repository not found.

最佳答案

来自 Travis doc 关于这个主题:

Git cannot clone my Submodules #

If your project uses Git submodules, make sure you use public Git URLs. For example, on GitHub, instead of

git@github.com:someuser/somelibrary.git

use

https://github.com/someuser/somelibrary.git

关于git - Travis 错误存储库无法从远程存储库中读取,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52665522/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com