From 9e6c06186b69f661ec78f0bdfdd6566b849f6f3d Mon Sep 17 00:00:00 2001 From: Claudio Costa Date: Tue, 19 Mar 2024 10:53:26 -0600 Subject: [PATCH] Use specified GO var to generate go.work (#26508) Co-authored-by: Mattermost Build --- server/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/Makefile b/server/Makefile index e516c16fc1..9f4c666e18 100644 --- a/server/Makefile +++ b/server/Makefile @@ -391,11 +391,11 @@ setup-go-work: ## Sets up your go.work file ifneq ($(IGNORE_GO_WORK_IF_EXISTS),true) @echo "Creating a go.work file" rm -f go.work - go work init - go work use . - go work use ./public + $(GO) work init + $(GO) work use . + $(GO) work use ./public ifeq ($(BUILD_ENTERPRISE_READY),true) - go work use ../../enterprise + $(GO) work use ../../enterprise endif endif