Chown needed for go get to work

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.

The Codespaces stacks are open source so you can commit the change to everyone.

This should be resolved in the latest codespaces default image.

Type docker image ls and if the tag for mcr.microsoft.com/vscode/devcontainers/universal is greater or equal to 0.17.0-linux, it should no longer happen.

1 Like

We deployed the 0.17.0-linux image with this fix on Friday after this issue was posted, so all newly-created Codespaces should have this fix. :tada: