Something goes wrong in your Go environment (even if the settings seems to be good ). I suggest you to use this project to properly install and the things will work. Delete any of your previous installation and configurations before.
Do not use sudo unless you know what you are doing.
sudo is not the answer to permission problems, but chmod and chown are.
I have no clue how you ended up with illgormed permissions there, but removing the build cache should fix your issue. You cannot see the path to it in the error. You’ll probably need sudo rm though, alternatively you should be able to chown -r youruser:yourmaingroup path/to/buildcache.
Identifiying files that you can’t read or write to while you should, and then change permissions.
Thats the most correct way.
Quick and dirty hack is to chown -r youruser:yourgroup ~. But this might change groupownership that you actually do not want to change. It probably won’t matter if you do not understand what I’m saying, then again I’d strictly advice against running this command.