From bc4ec26bf581e39844c566bcf789b9e9d62ab3b8 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Tue, 14 Jan 2020 12:33:46 +0000 Subject: [PATCH] Turn off module use for codecgen build There is no way to pass `-mod=vendor` through to the Go compilation that codecgen runs. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 42f4b8e86..1272b3e72 100644 --- a/Makefile +++ b/Makefile @@ -111,7 +111,7 @@ $(SCOPE_EXE): %.codecgen.go: $(CODECGEN_EXE) rm -f $@; $(GO_HOST) build $(GO_BUILD_FLAGS) ./$(@D) # workaround for https://github.com/ugorji/go/issues/145 - cd $(@D) && $(WITH_GO_HOST_ENV) $(shell pwd)/$(CODECGEN_EXE) -d $(CODECGEN_UID) -rt $(GO_BUILD_TAGS) -u -o $(@F) $(notdir $(call GET_CODECGEN_DEPS,$(@D))) + cd $(@D) && $(WITH_GO_HOST_ENV) GO111MODULE=off $(shell pwd)/$(CODECGEN_EXE) -d $(CODECGEN_UID) -rt $(GO_BUILD_TAGS) -u -o $(@F) $(notdir $(call GET_CODECGEN_DEPS,$(@D))) $(CODECGEN_EXE): $(CODECGEN_DIR)/*.go mkdir -p $(@D)