So I'm tinkering with a GitHub project and, having cloned it, was trying to build it using the Makefile: -
which fairly quickly tried/failed to pull in a submodule: -
rm -f ./shared-logger/go.mod
Generate submodule go.mod files
git submodule update --init --recursive
Submodule 'shared-logger' (https://github.com/genctl/shared-logger.git) registered for path 'shared-logger'
Cloning into '/root/etcd-operator/shared-logger'...
Username for 'https://github.com':
Now I have hit this many times before ...
And there is a solution ....
But I couldn't quite remember it ...
Thankfully, Google had the answer, Google is my friend: -
The solution was to update my Git config: -
git config --global url."email@example.com:".insteadOf "https://github.com"