3
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 5 years have passed since last update.

Homebrew でアップグレード した git 2.13.3 で diff-highlight が使えなくなって困った

Last updated at Posted at 2017-07-14

tl;dr

本日最新の Homebrew でインストールし直せば、ちゃんと diff-highlight の実行ファイルも生成されるようになり、この問題は発生しなくなりました _(:3」∠)_

問題と解決

昨日(2017/07/13)

.gitconfigdiff-highlight を使うように設定してたが git 2.13.2 から 2.13.3 にアップグレードしたところ、以下のようなエラーが発生するようになった。

[pager]
	log = diff-highlight | less
	show = diff-highlight | less
	diff = diff-highlight | less
$ g diff
diff-highlight | less: diff-highlight: command not found
$ diff-highlight
zsh: permission denied: diff-highlight

diff-highlight 自体は、git-core 配下の実行ファイルを /usr/local/bin にシンボリックリンクを貼って使っていたが

$ ll /usr/local/bin/diff-highlight
lrwxr-xr-x  1 tmd45  admin  48  7 13 16:58 /usr/local/bin/diff-highlight@ -> /usr/local/share/git-core/contrib/diff-highlight/diff-highlight

参照先のディレクトリから実行ファイルが消えていた。

$ ll /usr/local/Cellar/git/2.13.3/share/git-core/contrib/diff-highlight
total 56
drwxr-xr-x   8 tmd45  admin   272  7 13 07:59 ./
drwxr-xr-x  30 tmd45  admin  1020  7 13 07:59 ../
-rw-r--r--   1 tmd45  admin    28  7 13 07:59 .gitignore
-rw-r--r--   1 tmd45  admin  5865  7 13 07:59 DiffHighlight.pm
-rw-r--r--   1 tmd45  admin   365  7 13 07:59 Makefile
-rw-r--r--   1 tmd45  admin  8008  7 13 07:59 README
-rw-r--r--   1 tmd45  admin   211  7 13 07:59 diff-highlight.perl
drwxr-xr-x   5 tmd45  admin   170  7 13 07:59 t/

使うなら自分で make してくれという仕様になった様子。

本日(2017/07/14)

Homebrew 側が Formula で対応してくれました(上記 Issue 参照)。めでたしめでたし。

3
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
3
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?