Use specified GO var to generate go.work (#26508)

Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
Claudio Costa 2024-03-19 10:53:26 -06:00 committed by GitHub
parent 969096a403
commit 9e6c06186b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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