watchman 4.7 から 4.9 へアップデートしてみる

watchman 4.7をgithubからチェックアウトして、makeでインストールしていたから、ちょっとたいぎーことに

brew upgrade watchman
==> Downloading https://homebrew.bintray.com/bottles/watchman-4.9.0_2.mojave.bottle.tar.gz
Already downloaded: /Users/ka-yamao/Library/Caches/Homebrew/downloads/01bca112fb1c6fe86d4068af4635ca8a47a53688bb3597c4ac5e45e49fe1de27--watchman-4.9.0_2.mojave.bottle.tar.gz
==> Pouring watchman-4.9.0_2.mojave.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/watchman-make
Target /usr/local/bin/watchman-make
already exists. You may want to remove it:
  rm '/usr/local/bin/watchman-make'

To force the link and overwrite all conflicting files:
  brew link --overwrite watchman

To list all files that would be deleted:
  brew link --overwrite --dry-run watchman

Possible conflicting files are:
/usr/local/bin/watchman-make
/usr/local/bin/watchman-wait
==> launchctl unload -F /Users/ka-yamao/Library/LaunchAgents/com.github.facebook.watchman.plist
==> Summary
🍺  /usr/local/Cellar/watchman/4.9.0_2: 23 files, 2.1MB

なんかインストールにミスっている。エラー出力の指示どおりwatchman-makeを削除してみる

# 削除
$ rm /usr/local/bin/watchman-make

# 一度削除して、もう一度インストールしてみる
$ brew uninstall watchman
$ brew install watchman
==> Downloading https://homebrew.bintray.com/bottles/watchman-4.9.0_2.mojave.bottle.tar.gz
Already downloaded: /Users/ka-yamao/Library/Caches/Homebrew/downloads/01bca112fb1c6fe86d4068af4635ca8a47a53688bb3597c4ac5e45e49fe1de27--watchman-4.9.0_2.mojave.bottle.tar.gz
==> Pouring watchman-4.9.0_2.mojave.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/watchman-wait
Target /usr/local/bin/watchman-wait
already exists. You may want to remove it:
  rm '/usr/local/bin/watchman-wait'

To force the link and overwrite all conflicting files:
  brew link --overwrite watchman

To list all files that would be deleted:
  brew link --overwrite --dry-run watchman

Possible conflicting files are:
/usr/local/bin/watchman-wait
==> launchctl unload -F /Users/ka-yamao/Library/LaunchAgents/com.github.facebook.watchman.plist
==> Summary
🍺  /usr/local/Cellar/watchman/4.9.0_2: 23 files, 2.1MB


なんかまたインストールにミスっている。エラー出力の指示どおり今度は、watchman-waitを削除してみる

# 削除
$ rm /usr/local/bin/watchman-wait

# また一度削除して、もう一度インストールしてみる
$ brew uninstall watchman
$ brew install watchman
 brew install watchman
==> Downloading https://homebrew.bintray.com/bottles/watchman-4.9.0_2.mojave.bottle.tar.gz
Already downloaded: /Users/ka-yamao/Library/Caches/Homebrew/downloads/01bca112fb1c6fe86d4068af4635ca8a47a53688bb3597c4ac5e45e49fe1de27--watchman-4.9.0_2.mojave.bottle.tar.gz
==> Pouring watchman-4.9.0_2.mojave.bottle.tar.gz
==> launchctl unload -F /Users/ka-yamao/Library/LaunchAgents/com.github.facebook.watchman.plist
🍺  /usr/local/Cellar/watchman/4.9.0_2: 23 files, 2.1MB

成功した