devcontainers / devcontainers/features
Cannot use golang with sudo
Open
- Dominant language
- Shell
- Stars
- 1.5k
- Forks
- 621
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 4
Description
When I run golang with sudo like the following, the execution fails.
```
$ sudo go run main.go
sudo: go: command not found
```
It seems the reason is that go binary is installed under `/usr/local`, which sudo(uid 0) cannot access.
Contributor guide
Assessment
This issue has not been assessed yet.