From 642d3ed36ec99945b8d400d21b736d27d6a5860f Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 14 Sep 2021 10:41:10 -0400 Subject: [PATCH] Makefile: only build from vendored sources Signed-off-by: Vincent Batts --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ef52ea7..7d0d97d 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ CLEAN_FILES += .cli.test .cli.test.tags build: $(BUILD) $(BUILD): $(SOURCE_FILES) - go build -o $(BUILD) $(BUILDPATH) + go build -mod=vendor -o $(BUILD) $(BUILDPATH) install.tools: @go get -u github.com/fatih/color ; \ @@ -85,7 +85,7 @@ build.arches: ./bin p=$$(echo $$pair | cut -d , -f 1);\ a=$$(echo $$pair | cut -d , -f 2);\ echo "Building $$p/$$a ...";\ - GOOS=$$p GOARCH=$$a go build -o ./bin/gomtree.$$p.$$a $(BUILDPATH) ;\ + GOOS=$$p GOARCH=$$a go build -mod=vendor -o ./bin/gomtree.$$p.$$a $(BUILDPATH) ;\ done clean: