Recently on my M1 Macbook I ran into the following issue when trying to compile some Go code with C dependencies. The “clang” command requires the command line developer tools. Being a Mac this also prompted me with a button I could click to install them. Naturally I clicked it, only to be prompted with the following.