From 63c4d12448a380bf1a2e65a372e6c43505ec52b5 Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Fri, 4 Feb 2022 09:48:05 -0500 Subject: [PATCH] Makefile: Fix race condition Generating the GraphQL API with gqlgen will fail if the loaders have not been generated yet. Ensure that the loaders are always generated first. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d7eeaef..a4a7f73 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,8 @@ include ${SRHT_PATH}/Makefile all: api api: - cd api && go generate ./... + cd api && go generate ./loaders + cd api && go generate ./graph cd api && go build .PHONY: all api -- 2.38.4