无法在 readthedocs 本地服务器上克隆私有 github 存储库
Failed to clone private github repositories on a readthedocs local server
我已经安装了 readthedocs local server,但是 我无法通过 django-allauth[从我的组织 构建私有 github 存储库.
我在所有存储库中拥有管理员权限,并且我在管理面板中配置了 django-allauth:
- 将 客户端 ID 和 密钥 添加到
"admin/socialaccounts/socialapplications"
。
- 将访问令牌添加到
"admin/socialaccounts/socialtoken"
。
- 将以下配置添加到
"admin/oauth/remoterepository"
每次尝试构建存储库时,我都会收到以下错误:
Failed to import project: Failed to get code from 'https://github.com/my-organization/my-project.git' (git clone): 128 git
clone error output: fatal: could not read Username for 'https://github.com': No such device or address
有人知道为什么会这样吗?有人能够在类似的情况下使用组织内的私有存储库配置本地 readthedocs 服务器吗?
我已经解决了添加标志的问题:
ALLOW_PRIVATE_REPOS = True
进入我的设置文件my-project/readthedocs/settings/local_settings.py。这将为 Github 存储库激活 x-oauth-basic urls,允许我使用我的 Github 个人访问令牌来克隆存储库.我刚刚使用以下格式更新了 Repository clone url 字段 admin/oauth/remoterepository:
https://<your token>:x-oauth-basic@github.com/my-organization/my-project.git
我已经安装了 readthedocs local server,但是 我无法通过 django-allauth[从我的组织 构建私有 github 存储库.
我在所有存储库中拥有管理员权限,并且我在管理面板中配置了 django-allauth:
- 将 客户端 ID 和 密钥 添加到
"admin/socialaccounts/socialapplications"
。 - 将访问令牌添加到
"admin/socialaccounts/socialtoken"
。 - 将以下配置添加到
"admin/oauth/remoterepository"
每次尝试构建存储库时,我都会收到以下错误:
Failed to import project: Failed to get code from 'https://github.com/my-organization/my-project.git' (git clone): 128 git
clone error output: fatal: could not read Username for 'https://github.com': No such device or address
有人知道为什么会这样吗?有人能够在类似的情况下使用组织内的私有存储库配置本地 readthedocs 服务器吗?
我已经解决了添加标志的问题:
ALLOW_PRIVATE_REPOS = True
进入我的设置文件my-project/readthedocs/settings/local_settings.py。这将为 Github 存储库激活 x-oauth-basic urls,允许我使用我的 Github 个人访问令牌来克隆存储库.我刚刚使用以下格式更新了 Repository clone url 字段 admin/oauth/remoterepository:
https://<your token>:x-oauth-basic@github.com/my-organization/my-project.git