Add instructions on using go with admin perms
For testing and possibly other operations go might need elevated permissions. Some parts of documentation and the BUILDING.md mention using `sudo go` but does not explain how to achieve this. This commit inserts instructions to the BUILDING.md as a small note. Note mentions systemwide and local solutions. Signed-off-by: Mete Durlu <mete.durlu@ibm.com>
This commit is contained in:
parent
75d594834d
commit
dea7ae27a9
@ -260,6 +260,10 @@ PASS
|
|||||||
ok github.com/containerd/containerd 4.778s
|
ok github.com/containerd/containerd 4.778s
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> *Note*: in order to run `sudo go` you need to
|
||||||
|
> - either keep user PATH environment variable. ex: `sudo "PATH=$PATH" env go test <args>`
|
||||||
|
> - or use `go test -exec` ex: `go test -exec sudo -v -run "TestTarWithXattr" ./archive/ -test.root`
|
||||||
|
|
||||||
## Additional tools
|
## Additional tools
|
||||||
|
|
||||||
### containerd-stress
|
### containerd-stress
|
||||||
|
Loading…
Reference in New Issue
Block a user