I was attempting to install a Go based tool using
go get. For example:
go get github.com/facebook/ent/cmd/entc
This wouldn’t work until I ran the following command
sudo chown -R codespace:codespace /go/
If this is a good solution it might be good to have the codespace user be the owner of that directory by default.