Commit e318fd5
committed
build: Fix docker command when selinux is enforced
The DOCKER command was missing :Z for the ~/go directory, failing with:
$ BUILD_IN_DOCKER=y make all
...
GOOS="linux" GOARCH="arm64" \
go build -tags "libvirt_dlopen" -ldflags="-X k8s.io/minikube/pkg/version.version=v1.37.0 ...
go: could not create module cache: stat /go/pkg/mod: permission denied
make: *** [Makefile:279: out/minikube-linux-arm64] Error 1
make: *** [Makefile:276: out/minikube-linux-arm64] Error 2
With this change we can debug build issues on Fedora or other distros
using selinux.1 parent 9ebf9fd commit e318fd5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
0 commit comments