Git pull simply will fail if there's uncommitted changes for the file it's pulling. Since the file is in a git repo and I assume a part of brew update steps is issuing git pull command for the update. I actually don't put the project in Documents folder anymore after loosing a ton of iCloud available space possibly caused by constant delete/recreate of dependency package folders like node_modules.īrew update will break if you have un-committed In what way does it "break"? It simply reports uncommitted changes, no? I don't think it's specific to Documents folder as I was having exact same problem with the projects in External SSD. The problem is specifically about projects in the Documents folder. Note that for those who have found other solutions, you are not experiencing the same issue, but of you are doing things like granting watchman full disk access, you may be reducing your security unnecesarily.Īlso, if you are on macOS, and the above doesn't work on its own, it may pay off to do the following and try the above again:įortunately, latest version does work as long as I keep my repo under home That has always been the case, regardless of version. Git checkout - watchman.rb # To avoid brew showing warnings about having uncommitted git changes Watchman shutdown-server # To ensure an old version isn't still runningīrew uninstall watchman # Get rid of the buggy (e.g., 2022.05.30.00) versionĬurl > "$(brew -repository)/Library/Taps/homebrew/homebrew-core/Formula/watchman.rb"īrew install watchman # This installs the functioning 2022.05.16.00 version dowloaded aboveīrew pin watchman # Tell brew to leave this older version alone (don't forget to unpin once this problem is solved)Ĭd "$(brew -repository)/Library/Taps/homebrew/homebrew-core/Formula/"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |