Skip to content

Commit 2c8322f

Browse files
committed
make: use build tags to stub unnecessary dependencies
Signed-off-by: Allen Davis <hoplin44@proton.me>
1 parent a923cc4 commit 2c8322f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ ARCHIVE=distrobuilder-$(VERSION).tar
33
GO111MODULE=on
44
SPHINXENV=.sphinx/venv/bin/activate
55
GOPATH=$(shell go env GOPATH)
6+
GOFLAGS=-tags=containers_image_storage_stub,containers_image_docker_daemon_stub,containers_image_openpgp
67

78
.PHONY: default
89
default:
910
gofmt -s -w .
10-
go install -v ./...
11+
GOFLAG=$(GOFLAGS) go install -v ./...
1112
@echo "distrobuilder built successfully"
1213

1314
.PHONY: update-gomod

0 commit comments

Comments
 (0)