Hacker News new | ask | show | jobs
by barkingcat 1937 days ago
Git going missing is likely to do with macOS updates. Since Apple moved to sealed system partition and "non-diff" os updates, each OS update comes as a unified whole package (often sized in the multiple gigs of data)

This wipes out the xcode-select installed git (because instead of "patching" the existing system, it just replaces the whole lot of it with whatever is in the archive). It leaves xcode alone (since that's in the Application folder), but any additional xcode command line tools gets wiped out by the OS update, and the system needs that reinstalled.

I ran into this with Intel based Macs running the beta 11.3 as well, so it's not necessarily an M1 issue.

2 comments

I wonder if it might be time to shift the majority of package installations to user-local. Outside of things where system-level is unavoidable (e.g. kexts) are there good reasons not to?
I just got a M1 macbook yesterday and this annoyed me. I installed git via xcode-select, then macOS prompted me to do a OS update, which I did, and then found out that git is gone. Definitely not the most pleasant experience. Especially that after the update macOS didn't prompt me to install the commandline tools like it did the first tie I ran 'git' in the terminal. I had to find out via some googling what happened and how to fix it.