0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[Swift]Mintが動かなくて困ったが`~/.git_template/hooks/`のせいでした

Posted at

概要

Cloning into 'github.com_yonaskolb_xcodegen'...
Post Checkout
make: *** No rule to make target `project'.  Stop.
🌱 Encountered error during "git clone --depth 1 -b 2.18.0 https://github.com/yonaskolb/xcodegen.git github.com_yonaskolb_xcodegen". Use --verbose to see full output
🌱  Couldn't clone https://github.com/yonaskolb/xcodegen.git 2.18.0

というログが出てMintのコマンド(bootstrap, install)が失敗して困っていた。

原因

エラーを見ると、「makeコマンド実行してるけどprojectってやつないよ」とのこと。
mintってmakeつかってるんだとか思ってたんですが、
mint内でgit cloneするときに以下のtemplateを参考にしちゃってたので自動でhooksファイルが生成されていた。
~/.git_template/hooks/
hooks ファイルにてmake projectを実行していてエラーになり、途中で処理が止まっていた。

解決法

~/.git_template/hooks/内のファイルを全部消す

おまけ

Mint関係なかったので調べるの大変でした

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?