LoginSignup
0
0

More than 1 year has passed since last update.

Hugo + GitHub PagesでNo url found for submodule pathが出てデプロイに失敗してしまった時の解決策

Posted at

エラー

1年ぶりくらいにHugoを使ってGitHub Pagesに上げているリポジトリを更新しようとしたらデプロイに失敗しました

Error: fatal: No url found for submodule path 'themes/hugo-identity-theme' in .gitmodules

image.png

今まではconfig.tomlのテーマの部分を見てsubmoduleをいい感じに参照してくれてたのかなぁと思うのですが
何かしらの仕様変更でうまいこと見れなくなってしまったのではないかと思います

解決方法

明示的に.gitmodulesを追加してあげて参照できるようにしました

.gitmodules
[submodule "themes/hugo-identity-theme"]
path = themes/hugo-identity-theme
url = https://github.com/aerohub/hugo-identity-theme

元々の仕様をちゃんと理解してなく解決までに少しハマってしまいました

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0