【问题标题】:fatal: No url found for submodule path 'dist' in .gitmodules致命:在 .gitmodules 中找不到子模块路径“dist”的 url
【发布时间】:2022-01-30 09:07:00
【问题描述】:

我正在尝试将我的应用部署到 git 页面,但 GitHub 页面的状态失败。

当我在 Action 中启动“pages build and deployment”时,我遇到了下一个问题:

1) Build > Checkout > Fetching submodules:
  /usr/bin/git submodule sync --recursive
  /usr/bin/git -c protocol.version=2 submodule update --init --force --depth=1 --recursive
  Error: fatal: No url found for submodule path 'dist' in .gitmodules
  Error: The process '/usr/bin/git' failed with exit code 128
2)Deploy > Deploy to github pages:
Error: Error: No uploaded artifact was found! 
Please check if there are any errors at build step.

我是不是做错了什么?

【问题讨论】:

    标签: git github github-pages github-pages-deploy-action


    【解决方案1】:

    检查您的.gitmodules 文件的内容:

    如果它只包含一个条目[submodule "dist"],带有模块路径dist,没有URL,
    然后完全删除.gitmodules 文件,添加并提交。
    (注意:as in here,检查你是否有一个 dist(没有尾部斜杠)条目,如果有则删除它)。

    然后重试部署过程。

    【讨论】:

      猜你喜欢
      • 2021-07-27
      • 2013-01-21
      • 2016-07-18
      • 1970-01-01
      • 1970-01-01
      • 2018-08-24
      • 2018-11-06
      • 2016-10-14
      • 2021-10-07
      相关资源
      最近更新 更多