We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c2b841 commit 9f9bb71Copy full SHA for 9f9bb71
Makefile
@@ -24,6 +24,11 @@ V = 0
24
Q = $(if $(filter 1,$V),,@)
25
TLS_SETTING := $(if $(filter $(OCI_BIN),podman),--tls-verify=false,)
26
27
+# Go settings
28
+GO_BUILD_OPTS ?= CGO_ENABLED=0 GO111MODULE=on
29
+GO_TAGS ?= -tags no_openssl
30
+GO_FLAGS ?= -mod vendor
31
+
32
all: lint build
33
34
GO := $(GOBIN)/go
@@ -45,7 +50,7 @@ lint: $(GO) $(GOLANGCI)
45
50
$(GOLANGCI) run
46
51
47
52
build-%: $(GO)
48
- cd cmd/$* && $(GO) fmt && $(GO) vet && GOOS=linux GOARCH=$(GOARCH) CGO_ENABLED=0 GO111MODULE=on $(GO) build -tags no_openssl -mod vendor
53
+ cd cmd/$* && $(GO) fmt && $(GO) vet && GOOS=linux GOARCH=$(GOARCH) $(GO_BUILD_OPTS) $(GO) build $(GO_TAGS)
49
54
55
format: $(GO)
56
$(GO) fmt ./pkg/... ./cmd/...
0 commit comments