devcontainers / devcontainers/features

The go feature doesn't appear to work properly with non-root user, can't run "go install <package>" /go/pkg permission denied

Open
#744 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
1.5k
Forks
621
Avg merge
2d 11h
Merged PRs (30d)
4

Description

I have installed the go devcontainer feature and the common-utils, when I try to install a package in that environment, I then get:

```
+ go install github.com/coreos/updateservicectl@v2.0.0
go: could not create module cache: mkdir /go/pkg: permission denied
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.