mirror of
https://github.com/containers/podman.git
synced 2025-06-23 10:38:20 +08:00
Merge pull request #6707 from lsm5/custom-GO_BUILD
Makefile: allow customizable GO_BUILD
This commit is contained in:
4
Makefile
4
Makefile
@ -38,10 +38,10 @@ PRE_COMMIT = $(shell command -v bin/venv/bin/pre-commit ~/.local/bin/pre-commit
|
||||
|
||||
SOURCES = $(shell find . -path './.*' -prune -o -name "*.go")
|
||||
|
||||
GO_BUILD=$(GO) build
|
||||
GO_BUILD ?= $(GO) build
|
||||
# Go module support: set `-mod=vendor` to use the vendored sources
|
||||
ifeq ($(shell go help mod >/dev/null 2>&1 && echo true), true)
|
||||
GO_BUILD=GO111MODULE=on $(GO) build -mod=vendor
|
||||
GO_BUILD ?= GO111MODULE=on $(GO) build -mod=vendor
|
||||
endif
|
||||
|
||||
BUILDTAGS_CROSS ?= containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper exclude_graphdriver_overlay
|
||||
|
Reference in New Issue
Block a user