devcontainers / devcontainers/features
Cannot use golang with sudo
Aperta
- Lingua principale
- Shell
- Stelle
- 1.5k
- Fork
- 621
- Merge medio
- 2g 11h
- PR unite (30g)
- 4
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.