Cannot rebuild app due to nameserver DNS issues "could not resolve host github.com"

Sometimes the local dns server gets broken. Replace that with 8.8.8.8 and see if that fixes it.

Have you rebooted lately? Maybe it’s in adding limbo upgrade state.