api/Makefile: remove -i flag to fix cross-compilation
When -i (install) flag is passed to `go build`, it attempts to install dependencies of the target. This will usually fail during cross-compilation due to GOROOT being not writeable to non-root users: runtime/internal/sys go build runtime/internal/sys: mkdir /usr/lib/go/pkg/linux_arm: permission denied Installing dependencies makes no sense in recent Go versions, because compilation is cached anyway (see `go help cache`).
This commit is contained in:
parent
48bbceabc8
commit
6e22d10b02
@ -26,11 +26,11 @@ clean:
|
||||
|
||||
devel-go:
|
||||
dep ensure
|
||||
go build -i -v -o $(GO_DEVEL_BUILD_BINARY)
|
||||
go build -v -o $(GO_DEVEL_BUILD_BINARY)
|
||||
|
||||
prod-go:
|
||||
dep ensure
|
||||
go build -i -v -o $(GO_PROD_BUILD_BINARY)
|
||||
go build -v -o $(GO_PROD_BUILD_BINARY)
|
||||
|
||||
test-go:
|
||||
dep ensure
|
||||
|
Loading…
Reference in New Issue
Block a user